最新消息:20190717 VPS服务器:Vultr新加坡,WordPress主题:大前端D8,统一介绍入口:关于

【部分解决】brew upgrade非常慢

Mac crifan 2524浏览 0评论

折腾:

【已解决】Carthage提示:Please update to the latest Carthage version

期间,brew upgrade速度很慢。

brew upgrade   很慢

更换Homebrew更新源 – 简书

【猫咪教程】#6 换源让Homebrew速度飞起!一起brew吧! | Maomi’s Blog

brew update 慢 解决办法 镜像更新源 | 落格博客

结果:

<code>➜  testGit cd /usr/local
➜  local git:(master) ✗ git remote set-url origin git://mirrors.ustc.edu.cn/brew.git
➜  local git:(master) ✗ cd /usr/local/Library/Taps/homebrew/homebrew-core
➜  homebrew-core git:(master) git remote set-url origin git://mirrors.ustc.edu.cn/homebrew-core.git

➜  homebrew-core git:(master) brew tap
==&gt; Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
###########################################################               82.5%^C
➜  homebrew-core git:(master) cd /usr/local
➜  local git:(master) ✗ git remote set-url origin http://mirrors.ustc.edu.cn/homebrew.git
➜  local git:(master) ✗ cd ~
➜  ~ mkdir tmp
➜  ~ cd tmp
➜  tmp git clone http://mirrors.ustc.edu.cn/homebrew.git
Cloning into 'homebrew'...
fatal: repository 'http://mirrors.ustc.edu.cn/homebrew.git/'; not found
</code>

搜:

fatal: repository ‘http://mirrors.ustc.edu.cn/homebrew.git/’;; not found

替换homebrew默认源 [LUG@USTC]

替换及重置Homebrew默认源 [LUG@USTC]

<code>➜  tmp cd "$(brew --repo)"
➜  Homebrew git:(stable) git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
➜  Homebrew git:(stable) cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
➜  homebrew-core git:(master) git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
</code>

然后再去试试brew upgrade是否快。

还是会先去下载bottles:

<code>➜  homebrew-core git:(master) brew upgrade carthage
==&gt; Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
#################################################################         90
</code>

好像速度也不是很快。

【总结】

总之,这里去设置了:

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

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

但是目前貌似没起效果。以后待观察。

转载请注明:在路上 » 【部分解决】brew upgrade非常慢

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
65 queries in 0.111 seconds, using 18.88MB memory