MAC 上 brew update 更换源

caoxingyu

关注

阅读 20

2023-09-14

//替换 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


//替换homebrew-cask

$ cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask

$ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

-----------------------------------

解决 MAC 上 brew update 更新缓慢甚至卡死状态

精彩评论(0)

0 0 举报