Updating Homebrew解决方案 Linux

Cool.Cat 2020-02-06 1939

需要更换brew源,以阿里云源示例:

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

export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles/
source ~/.bash_profile

brew update


另附中科大的源:
https://mirrors.ustc.edu.cn/brew.git

https://mirrors.ustc.edu.cn/homebrew-core.git

https://mirrors.ustc.edu.cn/homebrew-bottles/

最新回复 (0)
返回
发新帖
X