Mac卡顿Updating-Homebrew的解决方案

问题背景

MacOS系统,用brew进行安装,但是每次执行brew install XXXX,都会有Updating Homebrew的提示,而且还要花费很久等待的时候,<font color='red' size=6.5>是时候展现真正的技术了</font>


解决方案

归根结底就是brew开启了自动更新,关闭即可。

编辑配置文件

我用的是item2 + zsh。

1
vim ~/.zshrc

如果使用自带的shell,编辑下面文件:

1
vim ~/.bash_profile

文件结尾新增一行

1
export HOMEBREW_NO_AUTO_UPDATE=true

重新加载配置文件

1
2
source ~/.zshrc
source ~/.bash_profile

Mac卡顿Updating-Homebrew的解决方案
http://pygo2.top/articles/62547/
作者
mingliang.gao
发布于
2020年9月11日
许可协议