HomeBrew的安装与卸载

安装

1.打开终端,使用下面的安装脚本:

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

2.根据提示选择继续并且输入密码就自动安装。

卸载

1.打开终端,使用下面的卸载脚本:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
2. 检查以下目录,是否存在原先安装,但是现在不需要的软件包

/usr/local
/usr/local/bin
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share

3. 修复步骤2中目录的权限:
sudo chown root:wheel <directory> ; sudo chmod 755 <directory>

posted @ 2017-07-26 12:59  骞子_Isaac  阅读(1781)  评论(0)    收藏  举报