首页 > 其他 > 详细

更换 homebrew 国内镜像源

时间:2016-07-03 14:27:10      阅读:771      评论:0      收藏:0      [点我收藏+]

 

替换现有上游

cd /usr/local
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/brew.git

cd /usr/local/Library/Taps/homebrew/homebrew-core
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew-core.git

brew update

 

替换 Homebrew 二进制预编译包的镜像

临时替换

export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles

长期替换

echo export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles >> ~/.bash_profile
source ~/.bash_profile

 

 

PS:

https://www.logcg.com/archives/1301.html

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

https://mirrors.tuna.tsinghua.edu.cn/help/homebrew-bottles/

https://lug.ustc.edu.cn/wiki/mirrors/help/homebrew-bottles

 

更换 homebrew 国内镜像源

原文:http://www.cnblogs.com/phpdragon/p/5637954.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!