1. 程式人生 > >Macbook brew 安裝軟體 一直updating Homebrew

Macbook brew 安裝軟體 一直updating Homebrew

在用brew安裝新的軟體的時候一直出現:

Updating Homebrew...

主要是因為它試圖在連線國外的源,

改成國內的源就好了:

#替換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