Installing Homebrew on Mac OS X prior to El Capitan (that is Yosemite, Mavericks and others) used to be a breeze. But with a new change in OS X El Capitan called SIP - installing Homebrew has become a bit complicated. Advanced Mac users may appreciate using the Homebrew package manager, which greatly simplifies the process of installing command line software and tools on a Mac. For example, if you want to easily install favorite command line tools on a Mac like cask, htop, wget, nmap, tree, irssi, links, colordiff, or virtually any other familiar unix. Brew cask installs macOS apps, fonts and plugins and other non-open source software. $ brew cask install firefox. Making a cask is as simple as creating a formula.
Installation
Homebrew is package manager for Macs which makes installing lots of different software like Git, Ruby, and Node simpler. Homebrew lets you avoid possible security problems associated with using the sudo
command to install software like Node.
Prerequisites
- You should have some familiarity with the Mac Terminal application since you’ll need to use it to install Homebrew. The Terminal application is located in the Utilities folder in the Applications folder.
- Dependencies. You need to install one other piece of software before you can install Homebew:
- Xcode. Install Apple’s Xcode development software: Xcode in the Apple App Store.
Installation Overview
Download Brew On Mac
Installing Homebrew is straightforward as long as you understand the Mac Terminal. The Homebrew installation process guides through each step.
Installation Steps
Install Brew In Mac
- Open the Terminal app.
- Type
ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'
You’ll see messages in the Terminal explaining what you need to do to complete the installation process. You can learn more about Homebrew at the Homebrew website.
How to Update Homebrew
Brew For Mac
New versions of Homebrew come out frequently, so make sure you update it before updating any of the other software components that you’ve installed using Homebrew.* In Terminal type brew update
How to Uninstall Homebrew
Download Brew For Mac
- Open the Terminal app
- Type
ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)'
This downloads and runs the uninstaller script. Follow the instructions and Homebrew will be removed from your computer.