How to install brew on mac

Last Updated: Mar 1, 2024 by

If you’re a Mac user, you may have heard of Homebrew, a popular package manager for macOS. Homebrew, or “brew” for short, allows you to easily install and manage software packages on your Mac using simple terminal commands. In this article, we’ll guide you through the process of installing brew on your Mac and getting started with using this powerful tool.

What is Homebrew?

Before we dive into the installation process, let’s first understand what Homebrew is and why it’s useful. Homebrew is a free and open-source package manager for macOS. It allows you to easily install, update, and manage software packages on your Mac using simple terminal commands. This means you can quickly install and uninstall software without having to manually download and install each package.

Installing Homebrew

Installing Homebrew on your Mac is a simple process. First, open up your Terminal application. You can find this by going to Applications > Utilities > Terminal. Once your terminal is open, paste the following command and hit enter:

/bin/bash -c “$(curl -fsSL”

This will start the installation process for Homebrew. You may be prompted to enter your password, as this command requires administrator privileges. Once the installation is complete, you should see a message indicating that Homebrew has been successfully installed.

Using Homebrew

Now that Homebrew is installed on your Mac, you can start using it to install and manage software packages. To install a package, simply use the brew install command followed by the name of the package you want to install. For example, if you want to install the popular text editor “Atom”, you would use the following command:

brew install atom

Homebrew will then download and install the package for you. You can also use the brew search command to search for available packages. For example, if you’re looking for a package related to web development, you could use the following command:

brew search web development

This will show you a list of available packages related to web development that you can install using Homebrew.

Uninstalling Homebrew

If you ever want to uninstall Homebrew from your Mac, you can do so by running the following command in your terminal:

/bin/bash -c “$(curl -fsSL”

This will remove Homebrew and any packages that were installed using it.


Homebrew is a powerful tool for managing software packages on your Mac. With its simple terminal commands, you can easily install and manage a wide range of software. By following the steps outlined in this article, you should now have Homebrew installed on your Mac and be ready to start using it. Happy brewing!

Gulrukh Ch

About the Author: Gulrukh Ch

Gulrukh Chaudhary, an accomplished digital marketer and technology writer with a passion for exploring the frontiers of innovation. Armed with a Master's degree in Information Technology, Gulrukh seamlessly blends her technical prowess with her creative flair, resulting in captivating insights into the world of emerging technologies. Discover more about her on her LinkedIn profile.