1.问题
Mac安装软件时,国内如何加快brew访问速度?
2.解决方案
更换Homebrew镜像源
1.更换到清华大学镜像源
1
2
3
4
5
|
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
|
2.更换到淘宝镜像源
1
2
3
4
5
|
cd "$(brew --repo)"
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
|
文章作者
梵梵爸
上次更新
2024-03-14
许可协议
原创文章,如需转载请注明文章作者和出处。谢谢