What is Homebrew?
Homebrew is the package management tool under Mac OS platform, with install, uninstall, update, view, search, and many other useful features. A simple instruction, the package management can be achieved, but do not you care what happens to the various dependencies and file path, very convenient.
Official Website : also suggested that the lack kit it? Do not worry, Homebrew waiting at any time. Homebrew - OS X indispensable kit manager.
Install Homebrew
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Verify that the installation was successful
$ brew doctor
View brew version
$ brew -v
View brew help documentation
$ brew –help
Homebrew Update
$ brew update
Installation package
$ brew install <packageName>
Uninstall software
$ brew uninstall <packageName>
Search software
$ brew search <packageName>
View the list of installed software
$ brew list
Update package
$ brew upgrade # 更新全部包
$ brew upgrade $FORMULA # 更新指定包
$ brew outdated # 查看可更新的包
Clean up cache files and old versions
$ brew cleanup # 清理所有包的旧版本
$ brew cleanup $FORMULA # 清理指定包的旧版本
$ brew cleanup -n # 查看可清理的旧版本包,不执行实际操作
View package information
$ brew info <packageName>