美文网首页mac os
我那慢成狗的 brew install

我那慢成狗的 brew install

作者: 自由快挂 | 来源:发表于2017-05-13 11:18 被阅读33次

如 apt 和 yum 那样,肯定有国内的镜像。

选择清华大学的源:

#该镜像是 Homebrew 的 formula 索引的镜像 
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

#该镜像是 Homebrew 二进制预编译包的镜像
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile

嗖嗖的,爽!

相关文章

网友评论

    本文标题:我那慢成狗的 brew install

    本文链接:https://www.haomeiwen.com/subject/twuntxtx.html