当前位置:   article > 正文

2019-08-10 homebrew更新更新慢的问题

brew upgrade llvm 更新慢

Homebrew 镜像使用帮助

直接在~/ 路径下执行以下命令

  1. 替换现有上游
  2. git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
  3. git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
  4. git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git
  5. brew update
  6. 复原
  7. (感谢Snowonion Lee提供说明)
  8. git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git
  9. git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git
  10. git -C "$(brew --repo homebrew/cask)" remote set-url origin https://github.com/Homebrew/homebrew-cask.git
  11. brew update

(2)替换Homebrew Bottles源

4165335-c8b14935e490487a.png
image.png
  1. 临时替换
  2. export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles
  3. 长期替换
  4. echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile
  5. source ~/.bash_profile
本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号