中国科大开源软件镜像站
替换Homebrew源
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
替换homebrew-core源
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git<br>
替换homebrew-cask源
cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
替换Homebrew-bottles源
bash
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile<br>
source ~/.bash_profile<br>
zsh
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc<br>
source ~/.zshrc<br>
清华大学开源软件镜像站
替换Homebrew源
git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git<br>
替换homebrew-core源
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git<br>
替换homebrew-cask源
替换Homebrew-bottles源
bash
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile<br>
source ~/.bash_profile
阿里云官方镜像站
替换Homebrew源
cd "$(brew --repo)"
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git<br>
替换homebrew-core源
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git<br>
替换homebrew-cask源
替换Homebrew-bottles源
bash
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.bash_profile<br>
source ~/.bash_profile<br>
zsh
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.zshrc<br>
source ~/.zshrc<br>
腾讯软件源站
替换Homebrew源
cd "$(brew --repo)"<br>
git remote set-url origin https://mirrors.cloud.tencent.com/homebrew/brew.git<br>
替换homebrew-core源
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"<br>
git remote set-url origin https://mirrors.cloud.tencent.com/homebrew/homebrew-core.git<br>
替换homebrew-cask源
替换Homebrew-bottles源
bash
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.cloud.tencent.com/homebrew-bottles' >> ~/.bash_profile<br>
source ~/.bash_profile<br>
zsh
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.cloud.tencent.com/homebrew-bottles' >> ~/.zshrc<br>
source ~/.zshrc<br>
官方默认源
替换Homebrew源
cd "$(brew --repo)"<br>
git remote set-url origin https://github.com/Homebrew/brew.git<br>
替换homebrew-core源
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"<br>
git remote set-url origin https://github.com/Homebrew/homebrew-core.git
替换homebrew-cask源
cd "$(brew --repo)"/Library/Taps/caskroom/homebrew-cask<br>
git remote set-url origin https://github.com/Homebrew/homebrew-cask<br>
替换Homebrew-bottles源
删除HOMEBREW_BOTTLE_DOMAIN环境变量