🪞 国内镜像源 / Homebrew · macOS 包管理
⭐ 觉得好用?收藏备用,下次直接打开

选择来源

3 个可用
bash 永久配置(写入 ~/.zshrc 或 ~/.bash_profile)
export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
brew update
bash 切换 brew 自身的 Git 远端
git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
brew update
bash homebrew/core 源码仓库(brew 4.0 起普通用户无需配置,仅 brew 开发命令需要)
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
brew tap --force homebrew/core
brew update
bash 恢复官方源
unset HOMEBREW_API_DOMAIN HOMEBREW_BOTTLE_DOMAIN HOMEBREW_BREW_GIT_REMOTE HOMEBREW_CORE_GIT_REMOTE
git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew
brew update

其他工具镜像源

已复制到剪贴板