mac使用brew update无反应,更新慢解决办法

使用中科大的镜像
替换默认源
第一步,替换brew.git

cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

第二步:替换homebrew-core.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

最后使用

  brew update

进行更新,发现速度变的很快。替换镜像完成。

发布了207 篇原创文章 · 获赞 196 · 访问量 65万+

猜你喜欢

转载自blog.csdn.net/tanningzhong/article/details/103628672