Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开发工具系列之— Macos下homebrew更新慢问题的解决 #60

Open
johnnian opened this issue Mar 28, 2019 · 0 comments
Open

开发工具系列之— Macos下homebrew更新慢问题的解决 #60

johnnian opened this issue Mar 28, 2019 · 0 comments
Labels

Comments

@johnnian
Copy link
Owner

说明

平时在使用homebrew安装软件的时候,第一步总是要先执行 brew update,然后就卡住了...

下面的方法,可以解决这个问题:

步骤1: 替换 brew.git 源

cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

步骤2:替换 homebrew-core.git 源

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

步骤3: 执行更新

brew update

附录

网上搜到的几个 brew 源:

@johnnian johnnian added the Tools label Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant