Mac/Homebrew — brew update慢的解决方法

版权声明:欢迎转载,注明出处即可 https://blog.csdn.net/yolohohohoho/article/details/87892412

Homebrew是Mac的软件包管理器,我们可以通过它安装大多数开源软件。但是在使用brew update更新的时候竟然要等待很久。猜测可能是因为brew的官方源被墙或或者响应慢。于是想到的切换Homebrew的更新源的办法, 如果coding.net的源还是很慢的话, 也可以尝试其他的源。具体代码如下

$ #cd to homebrew foler
$ cd "$(brew --repo)";
$ #check  git remote status
$ git remote -v;
https://github.com/Homebrew/homebrew.git
$ #update remote url with Coding.net
$ git remote set-url origin https://git.coding.net/homebrew/homebrew.git
$ brew update

其他Mac相关问题:
conda install慢的解决方法
访问github慢的解决方法

猜你喜欢

转载自blog.csdn.net/yolohohohoho/article/details/87892412