Question
Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple's operating system, macOS. How do I install and use Homebrew?
Environment
Homebrew is available in macOS.
Resolution
Installing Homebrew
- On your computer running macOS open the Terminal application. This can be found in /Applications/Utilities folder.
- Type in the following command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" and press enter.
- Enter your computer password when prompted.
- Press Return when prompted.
- You will see the progress of the installation and after about 5 minutes should see Next steps when its complete.
- Run the first command it suggests under next steps by copying and pasting it into terminal and pressing enter.
- The command would look something like this echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/USERNAME/.zprofile but USERNAME would be your username.
- Run the second command it suggests under next steps by copying and pasting it into terminal and pressing enter.
- The command would look like this eval "$(/opt/homebrew/bin/brew shellenv)"
Using Homebrew
- Homebrew installs packages to their own directory /opt/homebrew/bin.
- In this example we will use Homebrew to install wget.
- On your computer running macOS open the Terminal application. This can be found in /Applications/Utilities folder.
- Type in the following command: brew install wget and press enter.
- You will see downloading and installing process.
- Type in brew help to see additional homebrew commands.
If you need further assistance, please contact the Bowdoin College Service Desk