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/homebrew-core"

git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git

#步骤三

brew update

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

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

复原

1

2

3

4

5

6

7

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.cnblogs.com/xzlive/p/11359466.html

时间: 2024-07-28 21:53:13

brew update慢,brew install慢如何解决?的相关文章

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.tsin

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

执行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

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

sudo pip2.7 install pyopenssl失败,解决方法

环境deepin2014rc 运行goagent 提示缺少pyopenssl 于是 sudo pip2.7 install pyopenssl 但是有报错: c/_cffi_backend.c:14:17: fatal error: ffi.h: 没有那个文件或目录 #include <ffi.h> 解决方法: sudo apt-get install apt-file apt-file update apt-file search /ffi.h 然后 安装 libffi-dev之后继续 pi

The sandbox is not in sync with the Podfile.lock. Run &#39;pod install&#39; or update your CocoaPods install

I. Project Cleanup In the project navigator, select your project Select your target Remove all libPods*.a in  Linked Frameworks and Libraries II. Update CocoaPods Launch Terminal and go to your project directory. Update CocoaPods using the command  p

Ubuntu12.04开机报错:could not update ICEauthority file /home/user/.ICEauthority 解决

产生原因:误将/home/user目录的用户变成了root,所以无法更新ICE导致开机警告 解决方法: 1.使用guest登录 2.打开一个console 3.Ctrl + Alt +F1 进入安全模式 4.使用你的用户名登录 5.sudo chown -R user:user /home/$user/.ICEauthority 或 sudo chown -R user:user /home/$user/.* user为你自己的用户名 sudo chmod 644 /home/$USER/.IC