brew 替换镜像

替换现有上游
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-science或者homebrew-python
cd “$(brew --repo)/Library/Taps/homebrew/homebrew-science”
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-science.git

cd “$(brew --repo)/Library/Taps/homebrew/homebrew-python”
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-python.git

brew update

猜你喜欢

转载自blog.csdn.net/bushiyao_/article/details/85060768
今日推荐