美文网首页
Mac OS X 中 HomeBrew 国内镜像

Mac OS X 中 HomeBrew 国内镜像

作者: izhangxm | 来源:发表于2017-04-10 19:04 被阅读0次

参考:
https://mirror.tuna.tsinghua.edu.cn/help/homebrew/

Homebrew 镜像使用帮助

注:该镜像是 Homebrew 的 formula 索引的镜像(即 brew update 时所更新内容)。本镜像站同时提供 Homebrew 二进制预编译包的镜像,请参考Homebrew bottles 镜像使用帮助

替换现有上游

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-science或者homebrew-python

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

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

brew update

相关文章

网友评论

      本文标题: Mac OS X 中 HomeBrew 国内镜像

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