安装
/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
brew更新
brew update
查看版本
brew -v
查看帮助
brew -h
brew安装
brew install <packageName>
示例:安装node
brew install node
brew卸载
brew uninstall <packageName>
示例:卸载git
brew uninstall git
查看可用包
brew search <packageName>
查看已安装列表
brew list
查看任意包信息
brew info <packageName>