brew 更换镜像源

brew update 慢

每次 brew update 或 brew install xxx 都需要等好久…

有时候安装个软件, 可以先按 Ctrl + c 先终止更新, 然后就可以继续安装了… 我也是醉了…

更换brew镜像源

# 进入brew主目录
$ cd `brew --repo`

# 更换镜像
$ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git

# 测试效果
$ brew update

几个镜像:

  • https://git.coding.net/homebrew/homebrew.git – Coding
  • https://mirrors.ustc.edu.cn/brew.git – 中科大

推荐

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

本文为转载文章,贵在分享,版权归原作者及原出处所有,如涉及版权等问题,请及时与我联系。
原文出处:XU3352'S TECH BLOG
原文链接:https://xu3352.github.io/mac/2018/09/06/mac-homebrew-update-slowly

(2)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
兰玉磊兰玉磊
上一篇 2020年12月30日
下一篇 2020年12月31日

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注