美文网首页
Mac 下 brew 使用国内的镜像源

Mac 下 brew 使用国内的镜像源

作者: 子枫Eric | 来源:发表于2019-11-15 20:51 被阅读0次
## 阿里云

## 阿里云

# 替换brew.git
cd "$(brew --repo)"
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
# 替换homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
# 刷新源
brew update

清华源

# 替换brew.git
cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
# 替换homebrew-core.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

更多精彩文章请关注 王明昌博客

相关文章

网友评论

      本文标题:Mac 下 brew 使用国内的镜像源

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