解决brew下载慢的问题

2021-02-04  本文已影响0人  白纸画

1.替换brew.git

cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

2.替换homebrew-core.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

3.替换homebrew-bottles

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc

4.执行更新,使之生效

brew update

brew update 执行时间可能比较长,耐心等待

上一篇 下一篇

猜你喜欢

热点阅读