No, macOS does not come with Homebrew. The brew command is the executable for Homebrew, a free and open-source package manager that you install yourself; a fresh Mac from Apple ships with Terminal and other developer command line tools, but it does not include Homebrew or the brew command. If you type brew into Terminal on a new Mac, you will normally get command not found: brew. That message is expected, not a sign that something is broken.

What Homebrew Is and Why It Exists

macOS includes plenty of built-in software: Safari, Mail, the Unix utilities under the hood, and, once you install the developer tools, compilers and interpreters like clang, git and python3. What it does not include is an Apple-sanctioned way to install hundreds of extra open-source command-line programs, libraries and even full applications from the terminal. Homebrew fills that gap.

Homebrew is a community project that acts as a catalog and installer. It knows where to download each piece of software, how to build it or unpack it, how to install its dependencies, and where to put the result so your shell can find it. Without a package manager, installing something like a newer version of a utility means finding the project's website, downloading an archive, compiling it, and manually copying files into /usr/local or elsewhere. Homebrew turns that into one command.

The word you type, brew, is simply the short name of the Homebrew command. So "does brew come with Mac" and "does Homebrew come with macOS" are the same question, and the answer is the same: it is a separate install.

How to Install Homebrew on a Mac

The official way to install it is a single shell command that Homebrew publishes on its website, brew.sh. Copy that command from the official site rather than from a forum post or video description, and paste it into Terminal. Installing Homebrew also requires the Xcode Command Line Tools; the installer will offer to set those up if they are missing. The general shape of the process is:

  1. Open Terminal from Launchpad or from Applications > Utilities.
  2. Go to brew.sh and copy the install command shown there.
  3. Paste the command into Terminal and press Return.
  4. Enter your Mac login password when prompted. Nothing appears as you type; that is normal.
  5. If the installer asks to install the Command Line Tools, accept, then let it finish.
  6. Follow any instructions printed at the end about adding Homebrew to your shell configuration, which may involve running a couple of extra commands and then restarting Terminal.

Exact prompts and wording can differ slightly by macOS version, chip type (Apple silicon versus Intel) and region, so read what the installer prints rather than assuming identical output. On Apple silicon Macs Homebrew installs under /opt/homebrew by default, while on Intel Macs the traditional location is /usr/local. That difference affects how your shell finds the command and how you read help pages online.

After installing, you can confirm it worked by running brew --version. You should see a version number and some information about your installation.

How Homebrew Fits Together

Homebrew works with a few simple concepts that are worth understanding before you rely on it:

  • Formula — a recipe that describes how to install a piece of command-line software or a library. You install one with brew install followed by the formula name.
  • Cask — a recipe for a regular macOS application, such as a browser or utility that would otherwise be a drag-and-drop install. Casks are installed with brew install --cask.
  • Tap — an extra source of formulae outside the main catalog. Some projects publish their own taps.
  • Dependencies — the other packages a program needs. Homebrew pulls these in automatically, which is a large part of its value.
  • Cellar — the directory where installed packages live, under your Homebrew prefix.

Everyday commands follow a predictable pattern. brew search looks for a package by name, brew info shows details about one, brew list shows what you have installed, brew upgrade updates packages, and brew uninstall removes one. Running brew doctor checks your setup for common problems. Because the tool is versioned and updated frequently, check the current command reference in the official documentation if a syntax detail matters to you.

Do You Actually Need It?

Plenty of Mac owners never install Homebrew, and that is fine. Whether it is worth it depends on what you do:

  • You install command-line developer tools, runtimes, databases or utilities regularly and dislike doing it by hand.
  • You want to keep a set of tools updated with a single command instead of tracking each project's releases.
  • You follow tutorials or documentation that assume Homebrew, which is common in developer and data-science material.
  • You only use everyday apps from the Mac App Store or the developers' own installers, in which case it adds little.

A common misconception is that Homebrew is an Apple product or that Apple supports it. It is an independent open-source project that depends on community maintenance. Apple does not bundle it, and problems with individual packages are handled by Homebrew's community, not Apple Support.

Common Problems After Installing

The most frequent complaint is still command not found: brew right after a successful install. That usually means your shell is not looking in the Homebrew directory, often because the shell configuration step was skipped or because you are using a different shell than the one the installer modified. The simplest checks, in order:

  1. Close and reopen Terminal so it reloads your shell configuration.
  2. Run brew --version to see whether the command is found now.
  3. Reread the end of the installer output and follow the shell configuration instructions it printed.
  4. On Apple silicon, confirm there is a Homebrew installation under /opt/homebrew; on Intel, under /usr/local.

Other common issues include permission errors caused by running brew with sudo when you should not, packages failing to build because the Command Line Tools are out of date, and installing the Intel Homebrew under emulation on Apple silicon and then wondering why tools behave oddly. If a specific package fails, brew doctor and brew update are the sensible first steps, followed by reading the error message closely; it often names the missing dependency.

Safety, Permissions and Housekeeping

Homebrew runs with your user account's permissions and installs software that you choose, so treat it like any installer: only add formulae and taps you recognize, and be wary of pasting commands from strangers. Homebrew discourages running it with sudo; forcing elevated permissions can leave files owned by root and cause later update failures. Removing Homebrew is possible, but it also removes the packages you installed through it, so plan for that before cleaning up. Note that Homebrew is a macOS and Linux tool; the Windows equivalent is a different package manager, not brew.

Frequently Asked Questions

Is brew preinstalled on macOS?

No. Neither Homebrew nor the brew command is included with macOS. You install it yourself from the official site, and until then Terminal will report that the command is not found.

Is Homebrew made by Apple?

No. It is an independent open-source project maintained by a community. Apple provides the Command Line Tools that Homebrew relies on, but it does not ship or support Homebrew.

Do I need Homebrew to use Terminal?

Not at all. Terminal and the built-in Unix tools work without it. Homebrew only adds an easy way to install and update extra software.

Why does Terminal say command not found: brew?

Because Homebrew is either not installed or not on your shell's search path. If you have installed it, reopen Terminal and follow the shell configuration lines the installer printed.

Where does Homebrew install things on a Mac?

By default, under /opt/homebrew on Apple silicon Macs and under /usr/local on Intel Macs. Packages themselves sit in the Cellar inside that prefix.

Can I use brew on Windows?

Not natively. Homebrew targets macOS and Linux. Windows users need a different package manager; if you are running Linux in a virtual machine or similar environment, Homebrew can be installed there.