mac brew安装一直很慢,
参考文章https://www.cnblogs.com/syw-home/p/12677586.html 进行了代理配置。
不过本人没有用清华的代理,而是用其他代理,原理是一样的。
配置之前可以看到brew是用的github的仓库,所以很慢,如下:
Developer:Homebrew user$ git remote -v
origin https://github.com/Homebrew/brew (fetch)
origin https://github.com/Homebrew/brew (push)
执行如下步骤,进行git 远端仓库替换:
cd "$(brew --repo)"
git remote set-url origin ${代理url}
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin ${代理url}
完成。
现在brew install 速度正常了。