Homebrew(macOS)stable
清华 Homebrew
https://mirrors.tuna.tsinghua.edu.cn/git/homebrew覆盖最全,支持 brew/core/cask/bottles,推荐首选
HomebrewmacOSbrew
使用说明
清华 Homebrew 镜像(推荐)
第一步:替换 brew 本身的 git 源
export HOMEBREW_BREW_GIT_REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
export HOMEBREW_CORE_GIT_REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
第二步:替换 bottles 下载源
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles
写入 ~/.zshrc 永久生效:
cat >> ~/.zshrc <<'EOF'
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
EOF
source ~/.zshrc
更新验证:
brew update
