homebrew update卡死解决办法

338 阅读1分钟

原因

默认使用国外镜像,升级很慢,big sur关闭默认更新则会报错

解决办法

使用中科大镜像替换

  1. 替换brew镜像
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
  1. 替换homebrew-core镜像
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git