homebrew 换源

对homebrew的使用除了替换核心软件仓库外,还需要替换cask软件仓库 和Bottles 源

替换核心软件仓库

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

替换 cask 软件仓库

cd "$(brew --repo)"/Library/Taps/caskroom/homebrew-cask
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

替换 Bottles 源

bash(默认 shell)用户

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile

通过更换成国内镜像源之后,速度会快起来。

发布了14 篇原创文章 · 获赞 1 · 访问量 593

猜你喜欢

转载自blog.csdn.net/Serendi_patty/article/details/105193040