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