How To Install Homebrew On Mac

Whether you’re a seasoned developer or just starting out, there’s no doubt that Homebrew is a tool you’re likely to come across. In this blog, we are going to walk you through the installation process of Homebrew on your Mac. Homebrew is a package manager that simplifies the installation of software on macOS.

Requirements

Before proceeding with this guide, ensure you meet the following requirements.

  • A macOS system (10.14 or later)
  • An admin account on your Mac
  • Command Line Tools (CLT) for Xcode
    • Step 1: Install Xcode’s Command Line Tools

      Homebrew relies on some tools that aren’t installed by default on Mac, so the first thing we need to do is install Xcode’s Command Line Tools.
      To install these tools, open your Terminal and type in the following command:


      xcode-select –install

      A software update popup window will appear that prompts you to install the command line developer tools. Click on Install and agree to the Terms of Service to start the installation process.

      Step 2: Install Homebrew

      Now that we have Xcode’s Command Line Tools installed, we can proceed to install Homebrew. In your Terminal, paste the following line of code:


      /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”

      This script will explain what it will do and will prompt you to confirm. If you want to know more about what this script does, you can visit their homepage.

      Step 3: Verify Installation

      After the installation process is completed, you can ensure that Homebrew is installed correctly by running:


      brew doctor

      If Homebrew was installed correctly, you should see the message: “Your system is ready to brew.”

      Conclusion

      That’s all there is to it! You have successfully installed Homebrew on your Mac. Now you can easily install other software packages right from your terminal. Enjoy brewing!