Many people may not understand Homebrew, in fact, it is equivalent to the development of software industry AppStore.
For example, if I want to install the latest version of Python, the traditional approach is
1. Download the latest version of Python to the official website
2. Extremely cumbersome and cautious removal of your own Python version
3. Install the new version
4. Setting Environment variables
With Homebrew, the only thing you need to do is:
brew uninstall python
brew install python
The whole process is just waiting, do not need Baidu Python official website, do not need to find the uninstall installation configuration environment variable tutorial ...
Installing Homebrew
More benefits will be discovered in your later use.
Below we carry out the installation of Homebrew.
- Open terminal and enter the following command:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Attention:
Due to network reasons, may not be successful, please try a few more times, until the successful installation.
In the middle will appear one Press RETURN to continue or any other key to abort
, please return in time, and enter the password, do not wait silly ...
Don't add sudo, it's okay to add it, you Don‘t run as root
'll be prompted later
If a package is causing the installation to fail, you only need to follow the instructions to
When you see the following content
? Indicates that the installation has completed successfully.
In the first place, the further use will be described in the following article.
Manage your Mac development package with Homebrew