码迷,mamicode.com
首页 > 其他好文 > 详细

brew update 很慢

时间:2019-08-23 13:19:05      阅读:87      评论:0      收藏:0      [点我收藏+]

标签:pos   mirror   ref   library   url   速度   bre   清华   set   

brew使用国内镜像源
这里用中科大的,另外还有清华的可用

# 步骤一
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

注意这里需要等待一会,因为要更新资源。

更新完后使用brew update,brew install速度变快很多了,不会卡在那半天没动静,替换镜像完成。

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

参考来源:https://www.uedbox.com/post/57246/

brew update 很慢

标签:pos   mirror   ref   library   url   速度   bre   清华   set   

原文地址:https://www.cnblogs.com/qqcc1388/p/11399372.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!