成功安装brew后,输入如下命令:
1、官网brew.sh复制安装脚本。
2、自动安装完成后,更换为清华源来加快速度。网址为:https://mirrors.tuna.tsinghua.edu.cn/help/homebrew
3、更换homebrew
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 brew update
更换homebrew-bottles (长期换源)
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile source ~/.bash_profile
本文详细介绍了如何在Mac环境下使用清华源加速Homebrew的步骤,包括安装brew、更换为清华源以及长期换源的方法,有效提升软件包的下载速度。
1384

被折叠的 条评论
为什么被折叠?



