美文网首页
brew update过慢

brew update过慢

作者: 吃啥呀 | 来源:发表于2020-04-18 17:13 被阅读0次

在使用homebrew安装mactex的时候,遇到404的报错,需要更新homebrew,但是homebrew更新的太慢了,所以需要更换源,加快更新速度。

1.更换brew.git

cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
  1. 替换homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
  1. 开始更新操作
 brew update

最后的效果


更新效果图.png

相关文章

网友评论

      本文标题:brew update过慢

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