0
点赞
收藏
分享

微信扫一扫

MAC 上 brew update 更换源

caoxingyu 2023-09-14 阅读 17

//替换 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 条评论