解决brew下载慢的问题
替换brew.git
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
替换homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
替换homebrew-bottles
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
执行更新,使之生效
brew update
brew update 执行时间可能比较长,耐心等待
版权声明:
作者:涵颖
链接:https://www.fanyicloud.cn/article-43.fan
来源:白纸画的博客
文章版权归作者所有,未经允许请勿转载。

全部评论