Mac系统下 brew 更换清华源(更快的安装GO)

不过多的介绍如何安装brew

直接上如何更新brew源为清华源
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
更换homebrew-bottles (长期换源)
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile

未经允许不得转载:高腾蛟 » Mac系统下 brew 更换清华源(更快的安装GO)

赞 (0)
分享到:更多 ()

相关推荐

    暂无内容!

评论 0

评论前必须登录!

登陆 注册