brew卸载&重新安装

1、卸载

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

2、安装【卸载与安装差别只有最后的install和undeinstall】

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

3、更新

brew update

 

遇到问题:

1、raw.githubusercontent.com 链接不到或者访问太慢

解决:绑定host

199.232.28.133 raw.githubusercontent.com

有host修改软件,直接在软件修改即可

没有的按照如下方式修改追加

sudo vim /etc/hosts

在hosts文件最后追加如下,保存退出即可:

199.232.28.133 raw.githubusercontent.com

 

 

----------smile

posted @ 2021-01-08 14:55  Walker-lyl  阅读(3776)  评论(0编辑  收藏  举报