首页 > 其他分享 >配置 brew 源

配置 brew 源

时间:2023-02-21 20:46:05浏览次数:26  
标签:cn mirrors 配置 https edu brew homebrew

替换成国内源:
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

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

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

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

brew update

标签:cn,mirrors,配置,https,edu,brew,homebrew
From: https://www.cnblogs.com/YZFHKMS-X/p/17142334.html

相关文章