brew update 很慢

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/

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

时间: 2024-08-30 11:31:34

brew update 很慢的相关文章

Mac/Homebrew brew update慢的方法

Homebrew是Mac的软件包管理器,我们可以通过它安装大多数开源软件.但是在使用brew update更新的时候竟然要等待很久.猜测可能是因为brew的官方源被墙或或者响应慢.于是想到的切换Homebrew的更新源的办法, 如果coding.net的源还是很慢的话, 也可以尝试其他的源.具体代码如下 $ #cd to homebrew foler $ cd "$(brew --repo)": $ #check git remote status $ git remote -v; h

brew update 慢 解决办法 镜像更新源

Brew 是OS X 上类似apt-get以及yum的一个软件包管理器,它依托于Github------ 所以,虽然你侥幸下载到了 brew,但你肯定是无法更新 brew 的.原因你懂.不过虽然不能更新 brew,但这只是指brew这个管理器本身罢了,软件还是可以安装的.但由于无法使用 brew update 也就无法更新软件--我们有必要来给 brew 换源. brew 的镜像源 brew 也有镜像源?嗯,确实有的,而且还不止一个: 中科大brew镜像源 清华brew镜像源 更换镜像源 1 2

MacOS ------>>brew update Error

安装CocoaPods的时候 需要升级Ruby的版本 <= 2.2.0 然后升级 Ruby的时候又要更新 HomeBrew 直接执行 brew update 会爆以下错误 #$ brew update Error: /usr/local is not writable. You should change the ownership and permissions of /usr/local back to your user account: sudo chown -R $(whoami) /

更新OS X El Capitan系统后,brew update报错,解决方案

报错结果: bash-3.2# brew update Error: Cowardly refusing to `sudo brew update` 解决方案: 顺序执行以下即可: ls -al `which brew` sudo chown root:wheel `which brew` sudo chown : `chown brew` 执行结果: bash-3.2# ls -al `which brew` -rwxr-xr-x 1 huanghonglin admin 791 10 26

执行brew update后显示Permission denied

执行brew update后显示如下: touch: /usr/local/.git/FETCH_HEAD: Permission denied error: cannot open .git/FETCH_HEAD: Permission denied /usr/local/Library/Homebrew/cmd/update.sh: line 514: /usr/local/.git/UPDATE_FAILED: Permission denied touch: /usr/local/Lib

brew update慢,brew install慢如何解决?

主要是资源访问太慢造成的,替换默认源镜像就行. brew使用国内镜像源 这里用中科大的,另外还有清华的可用 1 2 3 4 5 6 7 8 9 10 # 步骤一 cd "$(brew --repo)" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git # 步骤二 cd "$(brew --repo)/Library/Taps/homebrew/homebre

ubuntu14.04中sudo apt-get update很慢的解决方法

1.打开终端,进入目录:  cd /etc/apt 2.备份一下原来的source文件:sudo cp sources.list sources.list.bak 3.打开source文件,sudo gedit /etc/apt/sources.list 将内容替换为: # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted deb-src http://

brew命令

下面参考下网友的总结: 查看brew的帮助 brew –help 安装软件 brew install git 卸载软件 brew uninstall git 搜索软件 brew search git 显示已经安装软件列表 brew list 更新软件,把所有的Formula目录更新,并且会对本机已经安装并有更新的软件用*标明. brew update 更新某具体软件 brew upgrade git 查看软件信息 brew [info | home] [FORMULA...] 删除程序,和upg

mac install brew

最近刚把开发平台从windows迁移到Mac,发现有些东西也是需要根据自己需要安装的,所以搜了下,发现网上各路大神推荐brew,看完介绍,感觉不错,搞起安装(这里说下心得,在Mac app store中有很多常用的软件都找不到,例如大名鼎鼎的eclipse,sublime text等,其实是个人想的太狭隘了,以为在Mac上的安装的软件都是要从app store中下载,其实不然,有网友这样说:在Mac app store中发布软件不是不要钱的,开发者需要花一年几百块去开发软件的,当然,你可以光是开