brew update过慢

2020-04-18  本文已影响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
上一篇 下一篇

猜你喜欢

热点阅读