Posted inGuides

Homebrew Starter Guide: The Missing Package Manager for macOS

Homebrew package manager logo

Installing an app on a Mac usually means finding the developer’s website, downloading a DMG or PKG file, opening it and following the installation instructions. Do that for a dozen apps, and keeping everything updated becomes another chore.

Homebrew offers another way. It’s a free and open source package manager that lets you install, update and remove command line tools and Mac applications from Terminal. Want Firefox? Instead of downloading it manually, you can run:

brew install --cask firefox

That’s one command. And once an app is installed through Homebrew, you can manage it from the same place. Here’s how to get started, what the commands actually do and which ones are worth remembering.

Affiliate promotion. FSMdotCOM may earn a commission.

AdGuard Black Friday 2026: 50% off annual plans and 45% off all plans.

Updated: November 23, 2026.

What is Homebrew, and what can you install with it?

Homebrew manages two main kinds of packages. The distinction matters because it tells you which command to use.

  • Formulae are commonly used for Terminal utilities, programming languages, libraries and other command line software. For example, wget downloads files, while ffmpeg processes audio and video.
  • Casks are commonly used for graphical Mac apps and other packaged software. Think Firefox, Rectangle or CotEditor.

Homebrew Cask is already part of Homebrew. You don’t have to install a separate Cask package. If you’ve come across instructions telling you to run brew install cask or brew cask install firefox, those instructions are outdated.

Homebrew also works on Linux and Windows Subsystem for Linux, but this guide focuses on macOS. On a Mac, the default installation location is /opt/homebrew for Apple Silicon or /usr/local for Intel. Most cask applications still appear in your regular Applications folder.

Install Homebrew on macOS

Before installing anything, check Homebrew’s current support tiers. As of this update, Homebrew’s fully supported Mac configurations are on Apple Silicon running macOS Sequoia 15, Tahoe 26 or Golden Gate 27, with the usual requirements for supported hardware and current system updates. Older macOS releases and Intel Macs may still run Homebrew, but compatibility and availability of precompiled packages are more limited.

Open Terminal from Applications > Utilities, or find it using Spotlight. Copy the official installation command from brew.sh:

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

This command downloads and runs Homebrew’s installer. If you’d rather inspect the script first, you can read it in the official installation repository. The installer explains the changes it intends to make and asks you to confirm before continuing. You may be prompted for your Mac administrator password. Terminal won’t show characters while you type it.

Depending on what you install and how your Mac is configured, you may also need Apple’s Command Line Tools. Homebrew can install precompiled casks without them, but building software from source can require developer tools.

Homebrew installation running in Terminal on an Apple Silicon Mac
Original FSM installation screenshot from 2022. Current Homebrew prompts and output may look different.

Homebrew also provides an official PKG installer for Apple Silicon Macs running macOS Sequoia 15 or newer. You can find it under the assets of the latest Homebrew release. You only need one installation method.

Using an Apple Silicon Mac? Our separate Homebrew installation guide for Apple Silicon covers the installer options, configuring your PATH and fixing the common zsh: command not found: brew error. Follow the instructions displayed at the end of your installation rather than guessing which shell configuration file to edit.

Check that Homebrew is installed

Open a new Terminal window and run:

brew --version

To see where Homebrew is installed, use:

brew --prefix

If Terminal can’t find brew, use the brew shellenv instructions shown by your installer, or follow the PATH section in the Apple Silicon guide linked above. Don’t install Homebrew a second time just to fix your PATH.

Find software before you install it

How do you know whether Homebrew has the app or tool you’re looking for? Search from Terminal:

brew search firefox

Then check the package details. For a Mac app:

brew info --cask firefox

For a command line tool:

brew info wget

You can also browse the official Homebrew formulae and casks directory. This is useful when a search returns similarly named packages or you’re not sure whether a tool is available for your Mac.

Don’t assume a package is safe just because it has a Homebrew entry. Check what it installs, who maintains the software and whether it meets your needs, especially when a command involves a third party tap.

Install command line utilities

To install a formula, use brew install followed by its package name. For example:

brew install wget

Or, if you work with audio and video files:

brew install ffmpeg

Homebrew downloads the package and any required dependencies. Precompiled packages, called bottles, usually avoid the need to compile software yourself. You normally shouldn’t put sudo in front of brew install.

To see which formulae are installed:

brew list --formula

Install Mac apps with Homebrew Cask

For graphical applications, use brew install --cask. Firefox is the example we started with:

brew install --cask firefox

You can install multiple apps in the same command. For example:

brew install --cask rectangle coteditor

Rectangle is a free and open source window manager, while CotEditor is a native Mac text editor. Both are useful examples of the type of software Homebrew can manage.

Another example is MacPacker, a free and open source utility for browsing nested archives, extracting individual files and creating or editing ZIP and 7z archives. Install it with brew install --cask macpacker.

List the casks you’ve installed with:

brew list --cask

These are still ordinary Mac apps. You open them as usual, and some have their own update mechanisms. Installing through Homebrew doesn’t turn every application into a Terminal program or guarantee that every app will update through brew upgrade.

Update Homebrew and your installed software

Once you have a few packages installed, this is where Homebrew becomes especially useful. You can check for updates without visiting every developer’s website.

First, update Homebrew’s package information:

brew update

See which installed packages have updates available:

brew outdated

Then upgrade eligible packages:

brew upgrade

Homebrew normally skips some casks that update themselves or don’t publish conventional version numbers. That behavior is intentional. If an application updates itself, you may not need to force a separate Homebrew upgrade.

For a specific package, you can also run brew upgrade wget or brew upgrade --cask firefox when an upgrade is available.

Uninstall software and clean up old files

To uninstall a formula:

brew uninstall wget

To uninstall a Mac app that you installed as a cask:

brew uninstall --cask firefox

Removing an app doesn’t necessarily remove its preferences, documents or every related file in your home folder. Homebrew also has a --zap option for casks, but use it carefully. It can remove additional files, including some shared with other apps.

If you prefer a graphical interface, Peel can manage Homebrew packages and help you review application leftovers on macOS Tahoe 26 or newer. Check its proposed removals rather than assuming every associated file should go.

Homebrew already performs some cleanup during installation and upgrades, including periodic broader cleanup. You can also check for old downloads and package versions yourself. First, preview what would be removed:

brew cleanup --dry-run

If the list looks right, you can run:

brew cleanup

To preview formula dependencies that are no longer needed:

brew autoremove --dry-run

Only run brew autoremove after checking the list. Cleanup concerns Homebrew’s old downloads and package versions. It isn’t a general Mac storage cleaner, and neither command should be treated as a reason to delete unrelated folders manually.

Save your installed apps with a Brewfile

Setting up a replacement Mac, or simply keeping track of what you’ve installed? Homebrew Bundle can save your supported packages in a plain text file called a Brewfile.

To create one in your home folder:

brew bundle dump --file="$HOME/Brewfile"

If a Brewfile already exists at that location, Homebrew won’t silently overwrite it. Back up or rename the existing file before making a new snapshot. Open the generated file in a text editor. You’ll see entries such as:

brew "wget"
cask "firefox"

Those lines are examples, not a promise that your Brewfile will contain exactly those packages. Your file reflects what Homebrew finds installed on your machine and may include other supported software types.

On another Mac with Homebrew already installed, review the Brewfile, then use:

brew bundle --file="$HOME/Brewfile"

That tells Homebrew to install missing packages and, by default, upgrade outdated ones where supported. A Brewfile isn’t an exact backup of app settings or a lockfile for specific software versions. Keep a copy somewhere safe and read it before applying it to another machine. See the official Homebrew Bundle guide for more options.

Prefer a graphical interface? Try BrewUI

For years, using Homebrew meant learning at least a handful of Terminal commands. As of Homebrew 7, there’s also BrewUI, Homebrew’s official native Mac interface.

BrewUI lets you discover packages, examine installed software and manage packages through a window while showing the underlying Homebrew commands. If you’d rather click through a list than remember command syntax, it’s worth a look. The app is still relatively new, so keep the Terminal commands handy if a graphical action doesn’t behave as expected.

Homebrew’s version 7 announcement documents this installation command for macOS Tahoe 26 or newer:

brew install --cask homebrew-app

For other macOS versions, check the current BrewUI releases and compatibility requirements before downloading anything. Older versions of this article recommended Cakebrew. Its website still lists version 1.3 from March 2021, so check compatibility carefully rather than assuming it is a current alternative.

Check privacy settings and known vulnerabilities

Homebrew analytics

Homebrew collects aggregate usage analytics to help maintainers understand which packages, commands and platforms people use. Its current analytics documentation describes collection through InfluxDB, not Google Analytics. It also explains what data is included and how long events are retained.

To check whether analytics is enabled on your installation:

brew analytics state

If you’d rather opt out:

brew analytics off

That disables Homebrew’s analytics, not the network connections required to download packages or check for updates.

Check installed formulae for known security issues

Homebrew 7 also introduced a built in vulnerability check. Run:

brew vulns

It checks installed Homebrew formulae against known vulnerability data from OSV.dev. It does not scan your installed casks, every app on your Mac or files for malware. A clean result isn’t a security guarantee, and the command may have coverage gaps.

Use the findings to investigate whether a patched version is available. The Homebrew manual documents the available vulnerability options and their limitations.

Useful Homebrew commands at a glance

Command What it does
brew search firefox Search available packages.
brew info --cask firefox Show details for the Firefox cask.
brew install wget Install a formula.
brew install --cask firefox Install a Mac application.
brew list --formula Show installed formulae.
brew list --cask Show installed casks.
brew update Refresh Homebrew’s package information.
brew outdated List packages with available upgrades.
brew upgrade Upgrade eligible installed packages.
brew cleanup --dry-run Preview outdated files Homebrew would remove.
brew doctor Check for common Homebrew configuration problems.
brew analytics state Show the analytics setting.
brew vulns Check installed formulae for known vulnerabilities.

If Homebrew behaves unexpectedly, start with brew doctor, read the warning and check the official documentation. Not every warning means something is broken, and blindly running commands from an old forum post can create more problems than it solves.

How to uninstall Homebrew itself

Uninstalling Firefox with Homebrew and uninstalling Homebrew are two different things. If you really want to remove the package manager, review the official uninstall instructions first. The current installer repository provides this command:

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

This runs the official uninstaller, not a general Mac cleanup tool. Read its prompts and understand what will be removed, especially if you have installed software or created files inside Homebrew’s directories. If you maintain more than one Homebrew installation, check the repository’s instructions for targeting a specific prefix. Don’t try to remove the installation by deleting /opt/homebrew or /usr/local yourself.

You don’t need to remember every Homebrew command. Start with searching, installing, checking for updates and uninstalling. Once those become familiar, the Brewfile and maintenance features are there when you need them.

Support FSMdotCOM on Liberapay