How to install Mac OS Configuration 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.

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)
Here Insert Picture Description
If there curl: (35) Server aborted the SSL handshakewhen 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
Here Insert Picture Description
input brewappears as shown in the Homebrew words available.
Here Insert Picture Description

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

At this point, the tool can be used easily Homebrew mounting operation friends ~

Here Insert Picture Description

Released three original articles · won praise 1 · views 37

Guess you like

Origin blog.csdn.net/peter19970118/article/details/104699388