brew - 更换国内源


brew如果不换成国内源,安装软件时候可能会出问题,不是安装不了就是速度很慢,所以使用它,更换国内游是比较好的选择!

我更换的是清华大学开源软件镜像站,打开shell窗口,依次执行下面命令:

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

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

brew update

全部执行完毕后,就更换成了清华大学的源了,这时,你再试一试安装软件!

参考:

https://mirror.tuna.tsinghua.edu.cn/help/homebrew/

https://blog.csdn.net/jeikerxiao/article/details/72705629


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM