原文链接 https://blog.youkuaiyun.com/qq_35624642/article/details/79682979
cd
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install
vim brew_install
更改脚本中的资源链接,替换成中国科学技术大学的镜像
就是把这两句
BREW_REPO = “https://github.com/Homebrew/brew“.freeze
CORE_TAP_REPO = “https://github.com/Homebrew/homebrew-core“.freeze
更改为这两句
BREW_REPO = "https://mirrors.ustc.edu.cn/brew.git".freeze
CORE_TAP_REPO = "https://mirrors.ustc.edu.cn/homebrew-core.git".freeze
rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
/usr/bin/ruby brew_install
That’s ok
本文详细介绍如何在Mac系统中配置Homebrew使用中国科学技术大学的镜像源,包括修改脚本中的资源链接,更换BREW_REPO和CORE_TAP_REPO为中科大镜像,以及更新homebrew-core仓库的具体步骤。
1429

被折叠的 条评论
为什么被折叠?



