跳转至主要内容

C'est La Vie

Homebrew切换到国内镜像源

hliang
最后编辑于 2019年3月5日

Mac自带的Homebrew由于GFW的原因,连接到官方源的速度往往都是死慢死慢的,于是考虑到将其切换到国内的镜像源上。

切换过程如下:

# cd "$(brew --repo)"
# git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
# cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
# git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
# brew update

好了,已经成功的将其切换到了清华大学的源上。

分类:

发表回复

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