brew 可以用命令在mac上安装、卸载、更新各种软件包。它是一个用ruby写的软件,软件是托管在github上的。
1、安装brew,一般选择清华源,如果之前安装过brew,执行下面命令时会自动备份old_homebrew,按照操作执行即可;
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2、删除brew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"
3、执行删除命令,删除失败,手动删除如下:
删除homebrew文件夹:sudo rm -rf /usr/local/Homebrew
删除homebrew相关文件:
sudo rm -rf /usr/local/Caskroom
sudo rm -rf /usr/local/bin/brew
sudo rm -rf /usr/local/share/doc/homebrew
sudo rm -rf /usr/local/share/man/man1/brew.1
标签:macOS,删除,安装,rf,usr,brew,rm,local From: https://www.cnblogs.com/Ashley-ChangAn/p/18083727