Homebrew是Mac的软件包管理器,咱们能够经过它安装大多数开源软件。可是在使用brew update更新的时候居然要等待好久。猜想多是由于brew的官方源被墙或或者响应慢。因而想到的切换Homebrew的更新源的办法, 若是coding.net的源仍是很慢的话, 也能够尝试其余的源。具体代码以下git
$ #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慢的解决方法github