有时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 阿里云