Homebrew 源更新;更换为国内源;

最近使用brew update时,发现homebrew更新缓慢;于是进行更换为国内源;

晚上这种教程很多,我选择的是中科大的源;当然清华的源也是可以的,这取决于你当前所处的地理位置,这样有更通畅的网络链接;

https://mirrors.ustc.edu.cn/help/brew.git.html

https://mirrors.ustc.edu.cn/help/homebrew-core.git.html

https://mirrors.ustc.edu.cn/help/homebrew-cask.git.html

https://mirrors.ustc.edu.cn/help/homebrew-bottles.html(可选)

临时配置bottles下载源:

export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles # 如果需要持久化,可以配置在.bashrc之中;

上面链接中,教程比较完善;大家可以参考配置;

保持更新,转载请注明出处;更多内容请关注 cnblogs.com/xuyaowen;

猜你喜欢

转载自www.cnblogs.com/xuyaowen/p/brew-update-problem.html