安装:

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

卸载就比较麻烦:

cd `brew --prefix`  
rm -rf Cellar  
brew prune  
rm `git ls-files`  
rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions  
rm -rf .git  
rm -rf ~/Library/Caches/Homebrew  

如果权限问题就加上sudo即可。

comments powered by Disqus