码迷,mamicode.com
首页 > 其他好文 > 详细

更换 homebrew 国内镜像源

时间:2016-07-03 14:29:11      阅读:1539      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!