成功安装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
原文地址:https://www.cnblogs.com/tingguoguoyo/p/10991181.html
时间: 2024-10-16 07:04:11