Homebrew切换镜像源(中科大&清华镜像)
零、Homebrew 镜像地址(推荐中科大镜像) 1、brew.git 镜像
中科大镜像:mirrors.ustc.edu.cn/brew.git
清华镜像:mirrors.tuna.tsinghua.edu.cn/git/homebre…
GitHub镜像:github.com/Homebrew/br…
2、homebrew-core.git 镜像
中科大镜像:mirrors.ustc.edu.cn/homebrew-co…
清华镜像:mirrors.tuna.tsinghua.edu.cn/git/homebre…
GitHub镜像:github.com/Homebrew/ho…
一、替换 Homebrew 镜像源 1、替换 brew.git
以中科大镜像为例
(brew --repo)"
$ git remote set-url origin mirrors.ustc.edu.cn/brew.git
或
(brew --repo)" remote set-url origin mirrors.ustc.edu.cn/brew.git
2、替换 homebrew-core.git
以中科大镜像为例
(brew --repo)/Library/Taps/homebrew/homebrew-core"
$ git remote set-url origin mirrors.ustc.edu.cn/homebrew-co…
或
(brew --repo homebrew/core)" remote set-url origin mirrors.ustc.edu.cn/homebrew-co…
二、重置 Homebrew 镜像源 切回官方原始镜像(GitHub)
(brew --repo)" remote set-url origin github.com/Homebrew/br…
(brew --repo homebrew/core)" remote set-url origin github.com/Homebrew/ho…
三、参考资料 1、Updating Homebrew... 长时间不动解决方法
2、清华大学开源镜像 | Homebrew 镜像使用帮助
———————————————— 版权声明:本文为CSDN博主「挽安」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:blog.csdn.net/weixin_4212…