Mac brew update更换brew镜像源解决极其慢问题

每次 brew update 或 brew install xxx 都需要long time

安装个软件, 可以先按 Ctrl + c 先终止更新, 然后就可以继续安装了… 醉了!

1 查看Homebrew当前源

cd /usr/local/Homebrew
git remote -v
  • 官方镜像源

    一看到 github 就知道了慢的要老命!

赶紧的更换brew镜像源走起!

2 更改brew镜像源

进入brew主目录

git remote set-url origin 
	git://mirrors.tuna.tsinghua.edu.cn/homebrew.git

进入 core

git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

可选镜像源

  • 清华镜像源
    git://mirrors.tuna.tsinghua.edu.cn/homebrew.git
  • 中科大镜像源
    http://mirrors.ustc.edu.cn/homebrew.git

参考

Mac下更换Homebrew镜像源

发布了367 篇原创文章 · 获赞 443 · 访问量 29万+

猜你喜欢

转载自blog.csdn.net/qq_33589510/article/details/104842817