Learn Docker:Fundamentals of Docker 19.x
上QQ阅读APP看书,第一时间看更新

Installing Homebrew on macOS

Homebrew is the most popular package manager on macOS, and it is easy to use and very versatile. Installing Homebrew on macOS is simple; just follow the instructions at https://brew.sh/:

  1. In a nutshell, open a new Terminal window and execute the following command to install Homebrew:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Once the installation is finished, test whether Homebrew is working by entering brew --version in the Terminal. You should see something like this:
$ brew --version
Homebrew 2.1.4
Homebrew/homebrew-core (git revision 77d1b; last commit 2019-06-07)
  1. Now, we are ready to use Homebrew to install tools and utilities. If we, for example, want to install the Vi text editor, we can do so like this:
$ brew install vim

This will then download and install the editor for you.