The package management tool on Mac is a very handy tool for developers to manage packages efficiently.
So this blog will simply talk about the installation of brew and some basic commands.
Brew full name is called homebrew.
1. First, the installation of brew:
Installing on a Mac requires Ruby to install, and Ruby is already installed on your Mac, and we can test it with commands.
Ruby-version
After making sure Ruby is OK, install brew with the following command.
Ruby-e "$ (curl-fssl https://raw.github.com/Homebrew/homebrew/go/install)"
If you have already installed it, you can use the following command:
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. The following is the installation of the software, for example, we need to install wget, can be implemented by the following command:
Brew Install wget
If we need to uninstall this tool, we can use the following command:
3. There are some commonly used commands in daily use:
Brew list lists installed software brew update update brewbrew home via browser access Brew website Brew Info display software information brew deps show dependencies between software
4. About the Software installation directory:
The brew-installed software will be placed separately in a directory and mapped to/usr/local.
All Homebrew files are installed in a predefined directory, so there is no need to worry about Homebrew installation locations.
Install Brew Package management tool on Mac