有時brew很慢。。。以下是一些加速
修改命令
- 進入brew主目錄
cdbrew --repo
- 更換鏡像
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
core 以及其他的替換方法類似
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask-versions.git - 測試效果
brew update
幾個可選的鏡像
https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git - 清華
https://mirrors.ustc.edu.cn/brew.git - 中科大
https://mirrors.aliyun.com/homebrew/brew.git 阿里雲