Make sure you always update Homebrew before installing or updating any software. To update Homebrew to its latest version, run the following command in your terminal: $ brew update Follow the instructions printed on the screen to finish the installation. The above command executes the installer script provided by the Homebrew team. Now you can install Homebrew with the following command: $ ruby -e ' $( curl -fsSL )' Xcode is not required to use Homebrew, but some of the packages you install will need Xcode's command-line tools.Įxecute the following command in your terminal to install Xcode's command-line tools package: $ xcode-select -installįollow the instructions on the screen to complete the installation of Xcode's command-line tools.
bash or zsh)īefore we actually install Homebrew, you need to install Xcode's command-line tools package. A Bourne-compatible shell for installation (e.g.Command Line Tools (CLT) for Xcode or Xcode ( click here to download).In this article, you'll learn how to install and use Homebrew on your macOS machine. It allows you to download and install binaries, applications, and utilities using your terminal. Homebrew is a popular package manager for macOS operating system.