Homebrew is the package manager for MacOS. It's the easiest and most flexible way to install the UNIX tools Apple didn't include with macOS. It allows you to download and install software like PHP, Git, Node, MongoDB, MySQL via the command-line on MacOS.
- A 64-bit Intel CPU
- macOS High Sierra (10.13) (or higher)
- Command Line Tools (CLT) for Xcode:
xcode-select --install, developer.apple.com/downloads or Xcode
- A Bourne-compatible shell for installation (e.g.
First download and install Apple's command-line developer tools with this command:
The pop-up window will appear:
Click the "Install" button.
Check the license and if you agree with it, click "Agree" button.
And after that software download will be initiated:
To install Homebrew on macOS Catalina run:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
This script will install and setup Homebrew on your system. After that you can verify that Homebrew is installed by checking its version:
brew -v # Homebrew 2.2.0-47-g6decac5
To uninstall Homebrew, paste the command below in a terminal prompt:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"