{"id":15715918,"url":"https://github.com/lzwme/homebrew-cn","last_synced_at":"2025-05-12T21:12:10.568Z","repository":{"id":115213594,"uuid":"608323898","full_name":"lzwme/homebrew-cn","owner":"lzwme","description":"适合中国大陆用户使用的 Homebrew 应用代理镜像库","archived":false,"fork":false,"pushed_at":"2025-05-12T02:14:03.000Z","size":92212,"stargazers_count":16,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-12T21:11:52.664Z","etag":null,"topics":["brew","brew-cask","brew-command","brew-packages","brew-tap"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lzwme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-01T19:32:02.000Z","updated_at":"2025-05-12T02:14:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"d092b066-9b38-426a-8e51-05bb0ed14321","html_url":"https://github.com/lzwme/homebrew-cn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzwme%2Fhomebrew-cn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzwme%2Fhomebrew-cn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzwme%2Fhomebrew-cn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzwme%2Fhomebrew-cn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lzwme","download_url":"https://codeload.github.com/lzwme/homebrew-cn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253823461,"owners_count":21969848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["brew","brew-cask","brew-command","brew-packages","brew-tap"],"created_at":"2024-10-03T21:43:25.499Z","updated_at":"2025-05-12T21:12:06.922Z","avatar_url":"https://github.com/lzwme.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🍡 lzwme/homebrew-cn\n\n适合中国大陆用户使用的 [Homebrew](https://brew.sh) 应用代理镜像库。\n\n本仓库主要从多个开源仓库同步更新，保留安装文件在 Github release 等外网下载慢的应用，并将从 `github release` 下载的应用地址修改为基于 `ghporxy.com` 的代理下载地址。\n\n## 国内 Macbook 安装与配置 Homebrew 参考\n\n执行如下命令进行安装和配置：\n\n```bash\n# 安装 Homebrew\n/bin/bash -c \"$(curl -fsSL https://mirror.ghproxy.com/raw.githubusercontent.com/lzwme/homebrew-cn/HEAD/install.sh)\"\n\n# 设置环境变量\necho 'export HOMEBREW_NO_ANALYTICS=1' \u003e\u003e ~/.bash_profile\necho 'export HOMEBREW_NO_INSTALL_FROM_API=1' \u003e\u003e ~/.bash_profile\n\n#指定二进制预编译包使用 `阿里云镜像`\necho 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' \u003e\u003e ~/.bash_profile\necho 'export HOMEBREW_API_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles/api' \u003e\u003e ~/.bash_profile\n# https://mirrors.ustc.edu.cn/homebrew-bottles # 中科大\n# https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles # 清华\n\nsource ~/.bash_profile\n\n# 添加 `lzwme/homebrew-cn` 仓库源\nbrew tap lzwme/cn --custom-remote https://mirror.ghproxy.com/github.com/lzwme/homebrew-cn\n\n# 更新\nbrew update\n```\n\n## Usage\n\n```bash\n# 添加当前仓库源\nbrew tap lzwme/cn --custom-remote https://mirror.ghproxy.com/github.com/lzwme/homebrew-cn\n\n# 搜索某个应用\nbrew search switchhosts\n\n# 从 lzwme/homebrew-cn 仓库安装应用\nbrew install lzwme/cn/switchhosts\n\n# 也可以一次性从 rb 应用文件安装 (后续若有更新也只能手动检查判断)\nbrew install https://mirror.ghproxy.com/github.com/lzwme/homebrew-cn/blob/main/Formula/\u003cformula\u003e.rb\n```\n\n## Sync From\n\n- [Homebrew/homebrew-core](https://github.com/Homebrew/homebrew-core)\n- [Homebrew/homebrew-cask](https://github.com/Homebrew/homebrew-cask)\n- [Homebrew/homebrew-cask-fonts](https://github.com/Homebrew/homebrew-cask-fonts)\n- [Homebrew/homebrew-cask-versions](https://github.com/Homebrew/homebrew-cask-versions)\n- [nicerloop/homebrew-nicerloop](https://github.com/nicerloop/homebrew-nicerloop)\n- [codello/homebrew-brewery](https://github.com/codello/homebrew-brewery)\n- [shivammathur/homebrew-php](https://github.com/shivammathur/homebrew-php)\n- [https://raw.githubusercontent.com/lencx/ChatGPT/main/casks/chatgpt.rb](https://raw.githubusercontent.com/lencx/ChatGPT/main/casks/chatgpt.rb)\n\n## 声明\n\n本仓库包含的应用信息仅从第三方仓库同步，未逐一作可用性、安全性验证，请在安装选择时自行验证识别。若有侵权请提 issues 处理。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzwme%2Fhomebrew-cn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flzwme%2Fhomebrew-cn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzwme%2Fhomebrew-cn/lists"}