美文网首页
Brew 源的替换

Brew 源的替换

作者: 龙之天下 | 来源:发表于2020-12-30 18:43 被阅读0次

替换 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的镜像源

相关文章

网友评论

      本文标题:Brew 源的替换

      本文链接:https://www.haomeiwen.com/subject/mpadyktx.html