How to Install Homebrew on Mac (Step-by-Step Beginner Guide)

Installing software on macOS can feel slow and repetitive when you rely on manual downloads. That is where Homebrew makes a big difference. It simplifies everything by letting you install tools directly from the Terminal with a single command.

How to Install Homebrew on Mac (Step-by-Step Beginner Guide)
How to Install Homebrew on Mac (Step-by-Step Beginner Guide)

In this guide, you will learn how to install Homebrew on Mac step by step, even if you are a complete beginner. By the end, you will be ready to install apps, manage packages, and speed up your workflow.

What Is Homebrew?

Homebrew is a package manager for macOS that lets you install, update, and manage software using simple Terminal commands.

It works like an App Store for developers, but instead of clicking buttons, you run commands to install tools quickly and efficiently.

Why Use Homebrew on Mac?

Homebrew saves time and keeps your system organized. Instead of downloading apps manually from different websites, you can install everything from one place using simple commands.

It also makes updating and removing tools much easier. With one command, you can upgrade all your installed packages without checking each app individually.

Before You Begin

Before installing Homebrew, make sure your system meets the basic requirements below:

  • macOS 12 Monterey or later (latest version recommended)
  • Active internet connection
  • Terminal access (pre-installed on every Mac)
  • Around 500 MB of free disk space

Step 1 — Open Terminal

Press ⌘ Command + Space, type Terminal, and press Return.

Alternatively, open:
Finder → Applications → Utilities → Terminal

Step 2 — Install Xcode Command Line Tools

Homebrew requires Apple’s command-line tools. Run this command:

/usr/bin/xcode-select --install

A popup will appear. Click Install and wait for it to complete (usually 5–10 minutes).

If the tools are already installed, you can skip this step.

Step 3 — Run the Homebrew Install Script

Copy and paste the official install command into Terminal:

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

The script will:

  1. Show what it will install
  2. Ask for your Mac login password
  3. Download and install Homebrew automatically

Security Tip: Always verify the URL matches the official Homebrew website (brew.sh).

Step 4 — Add Homebrew to PATH (Apple Silicon Macs)

If you use an M1, M2, M3, or newer Mac, Homebrew installs in a different location. You need to add it to your PATH.

Run:

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

If you use an Intel Mac, you can skip this step.

Step 5 — Verify the Installation

Run:

brew --version

You should see something like:

Homebrew 4.x.x

Then run:

brew doctor

If everything is fine, you will see: Your system is ready to brew.

Most Useful Homebrew Commands

Below are the most useful Homebrew commands you will use daily:

CommandWhat It Does
brew install gitInstall a package
brew uninstall gitRemove a package
brew updateUpdate Homebrew
brew upgradeUpgrade all packages
brew listShow installed packages
brew search wgetSearch packages
brew info nodeView package details

Installing Apps with Homebrew Cask

Homebrew also installs full macOS apps using Cask.

Use:

brew install --cask google-chrome
brew install --cask visual-studio-code
brew install --cask rectangle

These apps install directly into your Applications folder.

Troubleshooting Common Issues

Even though installing Homebrew is simple, you might face a few issues. Here’s how to fix them quickly.

1. “brew: command not found”

Your system cannot find Homebrew.

Run the PATH commands again (Step 4), then restart Terminal.

2. Permission Errors

Do not use sudo with Homebrew.

Run:

brew doctor

Follow the suggestions shown.

3. Slow Installation

Homebrew downloads from GitHub, so speed depends on your internet connection.

Let the process complete without interruption.

4. Xcode Tools Reinstall Loop

If macOS keeps asking for Xcode tools:

xcode-select --reset

Quick Tip: If Homebrew installation fails, restart your Mac and try again. Most issues happen due to incomplete Xcode tool setup.

How to Uninstall Homebrew

To remove Homebrew completely, run:

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

This removes all Homebrew files and installed packages.

If you run into any issue while installing Homebrew, comment on fdaytalk.com and we will help you fix it step by step.

Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply