---
title: "Install Homebrew on macOS: A Step-by-Step Tutorial"
description: "Explore easy steps to install Homebrew on macOS, enhancing your command-line package management skills for efficient software installations."
canonical: "https://adamtheautomator.com/install-homebrew/"
---

# Install Homebrew on macOS: A Step-by-Step Tutorial

> Explore easy steps to install Homebrew on macOS, enhancing your command-line package management skills for efficient software installations.

Source: https://adamtheautomator.com/install-homebrew/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![Install Homebrew on macOS: A Step-by-Step Tutorial](https://adamtheautomator.com/wp-content/uploads/2022/09/How-to-Install-Homebrew-on-macOS.jpg)

# Install Homebrew on macOS: A Step-by-Step Tutorial

[![](https://secure.gravatar.com/avatar/2788bb1a3f735603f81eca51d68daec56a9d97e805a10268fb2c20afcc76b81b?s=192&d=mm&r=g)Nicholas Xuan Nguyen](https://adamtheautomator.com/author/nicholas-xuan-nguyen/)23 January 20242 min. read

Categories: [IT Ops](/category/it-ops/)

Tags:[Homebrew](/tag/homebrew/)[macOS](/tag/macos/)

Table of Contents

*   [Prerequisites to Install Homebrew on MacOS](#prerequisites-to-install-homebrew-on-macos)
*   [Setting Up Xcode Command Line Tools](#setting-up-xcode-command-line-tools)
*   [Unlocking Homebrew’s Potential on macOS](#unlocking-homebrews-potential-on-macos)

If you’re an IT professional planning to enhance your macOS environment with powerful packages, the command line interface might seem daunting. But worry not! A game-changing solution awaits – Homebrew. This guide will take you through a step-by-step process to install Homebrew and mastering Homebrew on macOS.

Empower your management prowess and dive into the world of seamless package installation. Let’s get started!

## Prerequisites to Install Homebrew on MacOS

Before we embark on this journey, ensure you have:

*   A macOS computer. For this tutorial, we’ll be using a Mac M1.
*   XCode Command Line Tools

_Other tools like [PuTTY](https://adamtheautomator.com/pageant-putty/) or Telnet also rely on Xcode Command Line Tools for correct functioning._

## **Setting Up Xcode Command Line Tools**

Usually, Xcode Command Line Tools come bundled with Xcode installation. However, if you’re new to Xcode or have uninstalled it, manual installation might be necessary.

Follow these steps to proceed:

1\. Open your terminal and execute the following [xcode-select](https://www.manpagez.com/man/1/xcode-select/) command to confirm if Xcode Command Line Tools are installed:

```bash
xcode-select -p
```

If the tools are already installed, you’ll see their path specified, typically in the _/Library/Developer/CommandLineTools_ directory.

2\. To verify the success of the previous step, run the `echo $?` command:

```bash
echo $?
```

If the exit status is 0, Xcode Command Line Tools are installed. If you encounter an exit status of 1, you’ll need to install them.

3\. To install the tools, use the following command:

```bash
xcode-select --install
```

You can also acquire the Xcode Command Line Tools from the [App Store](https://apps.apple.com/us/app/xcode/id497799835?mt=12), but the terminal method is recommended due to its efficiency and lightweight nature.

4\. Upon prompt, click “Install” to commence installation:

![Starting the installation process](https://adamtheautomator.com/wp-content/uploads/2022/09/image-759.png)

Starting the installation process

5\. Accept the software license agreement by clicking “Agree” and kickstart the installation, which might take a few minutes:

![Accepting the license agreement](https://adamtheautomator.com/wp-content/uploads/2022/09/image-760.png)

Accepting the license agreement

6\. Verify the installation by running the following commands:

```bash
gcc -v
make -v
xcode-select -p
```

## **Unlocking Homebrew’s Potential on macOS**

Now that Xcode Command Line Tools are at your disposal let’s move forward and explore the world of Homebrew. It’s time to unleash its power and seamlessly manage packages on your macOS.

1\. Install Homebrew on macOS by executing the command below:

This command downloads the Homebrew installation script (install.sh) from the Homebrew GitHub repository and executes it:

*   The `-c` option instructs the terminal to run the subsequent command.
    
*   The `-fsSL` flag directs the curl command to fetch the URL without errors, follow redirects, and display a progress bar during download.
    

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

2\. The installation script begins by checking the prerequisites, like the operating system, user permissions, and the Xcode Command Line Tools. If everything is in order, installation commences:

![Prerequisites check during Homebrew installation](https://adamtheautomator.com/wp-content/uploads/2022/09/image-761.png)

Prerequisites check during Homebrew installation

3\. Upon successful installation, a message stating “`Installation successful!`” is displayed. This indicates that Homebrew is now a part of your macOS environment:

![Successful Homebrew installation](https://adamtheautomator.com/wp-content/uploads/2022/09/image-762.png)

Successful Homebrew installation

4\. You can also verify the installation by checking the Homebrew version:

```bash
brew --version
```

With Homebrew successfully installed, you’re now equipped to manage various packages on your macOS system effortlessly. Stay tuned for the next part of this series, where we’ll explore package management commands and how to install, update, and uninstall packages using Homebrew.

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Finstall-homebrew%2F&text=Install%20Homebrew%20on%20macOS%3A%20A%20Step-by-Step%20Tutorial)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Finstall-homebrew%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Finstall-homebrew%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2022/11/How-to-Install-NitroShare-for-Cross-Platform-File-Transfer.jpg)

### [Install NitroShare and Streamline Your File Transfers Today](/nitroshare/)

Simplify cross-platform file transfers with NitroShare. This tutorial guides you through installation and use for fast, effortless file sharing between different operating systems.

![](https://adamtheautomator.com/wp-content/uploads/2022/10/Unleash-macOS-Virtualization-With-VMware-Fusion.jpg)

### [Maximize Your macOS Virtual Experience with VMware Fusion](/vmware-fusion/)

Learn to utilize macOS virtualization with the VMware Fusion solution to develop and test locally in this ATA Learning tutorial!

![](https://adamtheautomator.com/wp-content/uploads/2023/09/onyx-macos-1200-×-675-px.jpg)

### [How to Install the CyberDuck S3 Browser for Mac](/s3-browser-for-mac/)

Learn how to use CyberDuck as your S3 Browser for Mac and ease your S3 management today in this ATA Learning tutorial!

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
