MAC brew update镜像源切换

2020-02-25  本文已影响0人  kattes

阅读借鉴 https://www.cnblogs.com/demingblog/p/11436602.html

(1)brew config查看现在镜像源(ORIGIN:https://github.com/Homebrew/brew.git 之前未操作过则会显示这个链接,也就是官方镜像源)

(2)替换 brew.git

cd"$(brew --repo)"git remoteset-url origin https://mirrors.ustc.edu.cn/brew.git

(3)替换 homebrew-core.git

cd"$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remoteset-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

(4)brew config查看更换后的镜像源(ORIGIN: https://mirrors.ustc.edu.cn/brew.git 说明更换成功)

然后再次进行brew update就可以了,感谢此原作者  ^_^ !

上一篇下一篇

猜你喜欢

热点阅读