替换 USTC 镜像
1、替换Homebrew源
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
重置:
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git
2、替换homebrew-core源
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin [https://mirrors.ustc.edu.cn/homebrew-core.git](https://mirrors.ustc.edu.cn/homebrew-core.git)
重置:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core
3、替换homebrew-cask源
cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
重置:
cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
git remote set-url origin https://github.com/Homebrew/homebrew-cask
4、附录:
中国科大开源软件镜像站或清华大学开源软件镜像站同时提供的有Homebrew二进制预编译包Homebrew-bottles
的镜像源
网友评论