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.
installation
command+空格
Spotlight open input terminal is opened or Terminal.app this terminal, enter a command to start the installation Homebrew
ruby -e "$(curl --insecure -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Some prompted for a password press 回车
to download and install (the installation process may be a bit slow)
If there curl: (35) Server aborted the SSL handshake
when prompted and end of the process, then there may be unrest caused by the installation fails, the need to uninstall again, uninstall command as follows:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
After performing the above mounting operation is completed unloaded again, until the emergence of Installation successful!
the word - the installation is successful
input brew
appears as shown in the Homebrew words available.
Homebrew basic operations
- Installation package
$ brew install <packageName>
- Uninstall package
$ brew uninstall <packageName>
- Query packages available
$ brew search <packageName>
- View installed package
$ brew list
- View any packet of information
$ brew info <packageName>
- Homebrew updated version
$ brew update
- Homebrew version information
$ brew -v
- help information
$ brew -h