安装homebrew
终端输入
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
homebrew常用命令
1.更新包
brew update
2.查找包
brew search <package_name>
3.安装包
brew install <package_name>
4.卸载包
brew uninstall <package_name>
5.查看所有安装的包
brew list
tips
1. 安装目录在 /usr/local中
2. 查看Homebrew的帮助
`brew -h`