MAC 下 Homebrew 默认的源是:
https://github.com/Homebrew/brew
执行以下命令 ,查看更新的详细过程:
$ brew update -verbose
Checking if we need to fetch /usr/local/Homebrew...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/mongodb/homebrew-brew...
Fetching /usr/local/Homebrew...
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Fetching /usr/local/Homebrew/Library/Taps/mongodb/homebrew-brew...
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services...
Checking if we need to fetch /usr/local/Homebrew...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/mongodb/homebrew-brew...
Fetching /usr/local/Homebrew...
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Fetching /usr/local/Homebrew/Library/Taps/mongodb/homebrew-brew...
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services...
执行过程会一直卡在 homebrew-services 处缓慢执行。
使用 brew doctor 查看源是哪里:
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you an update run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/more/.
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you an update run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/more/.
此处可以说明 homebrew 使用了默认的源,否则会提示使用以下命令替换源:
$ git -C "/usr/local/Homebrew" remote set-url origin https://github.com/Homebrew/brew
$ git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" remote set-url origin https://github.com/Homebrew/homebrew-core
$ git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" remote set-url origin https://github.com/Homebrew/homebrew-core
竟然默认源速度不佳,建议使用其他源替换。
以下是测试有效的源:
//替换 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
//替换homebrew-cask
$ cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
$ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.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
//替换homebrew-cask
$ cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
$ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
使用 “brew update -verbose” 命令执行更新即可!
相关推荐
Mac下使用国内镜像安装Homebrew,解决brew在mac下安装软件下载慢的问题,zip包内已经替换了国内镜像文件, Mac OS 安装 brew 已经替换国内源,直接使用即可 1.把 brew_install 复制到 /users目录 2.安装 ruby ./...
而 brew update,会依次更新 : brew / homebrew-core / homebrew-cask 而以上三个的来源都在 github,国内 github 的连接极不稳定,国此速度才会很慢 一直卡在更新这里不动 #1 解决方法 建立本地境象的方法: cd ~...
在终端运行命令:brew update【回车】,报错如下: error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: the remote end hung up unexpectedly fatal: early EOF fatal: ...
Mac上 brew install 存放目录。
mac brew安装文件
Atom-Mac-OS-All-In-One-Update-Script.zip,This is a bash script that updates all software I could find to be updated via Terminal on Mac OS. Currently including, Homebrew or Brew Forumla's, Brew Casks,...
默认情况下,此脚本将每隔24小时在后台运行一次brew update 。 brew upgrade和brew cleanup也可以自动处理,但它们是可选标志。 如果安装了terminal-notifier程序,则在此命令运行时,您还可以请求桌面通知。安装此...
自动识别Mac下Brew安装的PHP版本,提供切换选项,绿色软件直接放入Application目录即可使用。
该脚本将每隔24小时(默认情况下)在后台运行一次brew update ,直到明确告知要停止为止(使用launchd 。 brew upgrade和brew cleanup也可以自动处理,但它们是可选标志。 默认情况下,在macOS Big Sur上使用新的...
brew-update-notifier:自动获取通知并在osx上应用brew更新
详细的描述了BREW开发细节,BREW各个接口,并通过代码详细解释
Mac系统使用ruby安装Homebrew时,网页无法打开,可以下载该文件brew_install.rb,然后在终端输入ruby brew_install.rb 即可安装!
官方源安装brew 缓慢 安装容易失败,这个脚本是替换过源(将官方源替换成了清华源 brew bottle)下载后直接运行: ruby brew_install
Brew 指南Brew 指南Brew 指南Brew 指南Brew 指南Brew 指南
DOC格式,源于网络,本人整理,目录结构和图都很清晰! +《深入BREW开发》的第1章到第8章。 +《深度剖析BREW实现原理》
此书简洁而深入的介绍了brew的基本原理,非常适合已经入门但是还未从整体上掌握的brew开发者。
目录:(BREW 初级开发者 教程):第1章 BREW技术特点与发展趋势第2章 BREW SDK简介 第3章 BREW开发基础第4章 BREW手机简介 第5章 ISHELL第6章 IDISPLAY使用简介 第7章 ISTATIC第8章 IMENUCTL 第9章 IImage第10章 ...
brew 手机游戏开发实例brew 手机游戏开发实例brew 手机游戏开发实例brew 手机游戏开发实例