Mac brew update 实在找不出慢的原因了

banana · December 03, 2019 · Last by ken replied at December 07, 2019 · 6597 hits

终端设置了代理,还是慢 换了源,还是慢。 google 了半天也就是说换源和代理, 实在找不出什么原因了,哪位老同志能为我解解忧 😔

brew update --debug 看卡在哪一步

用--verbose 参数试试,一般 cli 卡住,我都会查一下有没有 verbose 参数


brew 更新国内镜像源 第一步,替换 brew.git cd "$(brew --repo)" git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

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

最后使用 brew update 第一次 update 会几分钟,后面安装飞快

复原 cd "$(brew --repo)" git remote set-url origin https://github.com/Homebrew/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://github.com/Homebrew/homebrew-core

brew update

4 Floor has deleted

最近刚好也遇到这个问题,换了国内科大,清华,阿里的源都不好使,最后还是换回本源,终端用代理,速度飞快,你终端用代理不行我觉得要么就是你没代理上,要么就是源没整对

就用原版的源,手机分享流量给电脑有奇效。

上全局 VPN,不是 SS 的全局模式

我也是终端上代理,速度飞快。

You need to Sign in before reply, if you don't have an account, please Sign up first.