之前使用 brew 使用過阿裡源和清華源,但是感覺都太慢了,最近發現了一個很快的源就是騰訊雲的官方鏡像源。
替換方式和阿裡的一樣:
替換 brew.git
cd "$(brew --repo)"
git remote set-url origin https://mirrors.cloud.tencent.com/homebrew/brew.git
替換 homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.cloud.tencent.com/homebrew/homebrew-core.git
更新 bottles 源
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.cloud.tencent.com/homebrew-bottles' >> ~/.bash_profile