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.
- 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.
Installing Homebrew is straightforward as long as you understand the Mac Terminal. The Homebrew installation process guides through each step.
- Open the Terminal app.
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
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
How to Uninstall Homebrew
- Open the Terminal app
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.