How to Install Apps With Homebrew on Mac

Install Homebrew, then install, update and remove Mac apps and command-line tools with one command each. Plus how to search and upgrade everything from Raycast without typing brew commands.

UPDATED

You found a tool on GitHub and the install instructions say brew install. Or you're setting up a new Mac and don't want to click through twenty download pages.

The short answer: install Homebrew, the free package manager most Mac developers use. Then install any app with one line, like brew install --cask raycast, and update everything at once with brew upgrade. If you'd rather not remember the commands, the free Brew extension for Raycast lets you search, install and upgrade packages from your keyboard.

MethodInstall HomebrewFind packagesUpgrade everything
TerminalOne commandbrew searchbrew upgrade
Brew for RaycastNeeds HomebrewType, then EnterPick from a list
Mac App StoreNot neededStore searchOnly App Store apps

Install Homebrew

Homebrew runs in Terminal and installs in a few minutes. This is the install command from the top of brew.sh:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Open Terminal from Applications → Utilities, or search for it with Raycast.
  2. Paste the command and press Return.
  3. Enter your Mac password when it asks. If Apple's Command Line Tools aren't installed yet, the installer downloads them for you.
  4. On an Apple silicon Mac, the installer ends with Next steps. Run the commands it prints so your shell can find brew in /opt/homebrew. On Intel Macs, Homebrew lives in /usr/local and works right away.
  5. Check that it worked with brew doctor. "Your system is ready to brew" means you're done.

Prefer a regular installer? Homebrew also publishes a .pkg file on its GitHub releases page.

Install, update and remove apps with brew

Homebrew has two kinds of packages. Casks are Mac apps with a window, like Raycast, Firefox or VLC. Formulae are command-line tools, like git, ffmpeg or node.

TaskCommand
Find a packagebrew search firefox
Install a Mac appbrew install --cask firefox
Install a command-line toolbrew install ffmpeg
See what's installedbrew list
See what's out of datebrew outdated
Update everythingbrew update && brew upgrade
Remove an appbrew uninstall --cask firefox
Remove an app and its support filesbrew uninstall --zap --cask firefox
Free up disk spacebrew cleanup

Apps installed as casks land in your Applications folder like any other app. The big win is that brew upgrade keeps them all current, and you can rebuild your whole setup on a new Mac from a list.

Pro tip: run brew bundle dump to save everything you've installed to a Brewfile. On your next Mac, brew bundle installs the lot.

Manage Homebrew from Raycast

Brew: search, install and upgrade Homebrew packagesInstall

Brew is a free, open-source extension with more than 300,000 installs. It wraps Homebrew in a searchable list, so you don't have to remember package names or flags.

Search in the Brew extension finds casks and formulae as you type and installs them with Enter.
Search in the Brew extension finds casks and formulae as you type and installs them with Enter.

Open Raycast and type one of these:

  • Search: find any formula or cask and install it with Enter. Packages you already have are marked as installed.
  • Show Installed: everything Homebrew manages, with pinned packages listed first.
  • Show Upgrades: review what's outdated, untick anything you want to keep as is, and upgrade the rest. Preview Upgrades (⌘ ⇧ I) shows version changes and download sizes before anything runs.
  • Upgrade All: upgrade everything in one go, with progress per package.
  • Adopt Apps: find apps already in your Applications folder that Homebrew has a cask for, and hand them to Homebrew so they update with everything else.
  • Manage Services and Services Menu Bar: start, stop and restart services like PostgreSQL or Redis.
  • Run Doctor, Clean up and Clear Cache: keep your Homebrew install healthy.

A few things worth knowing:

  • Install in Terminal if you like. Turn on Install and uninstall in the terminal application in the extension's preferences and pick Terminal, iTerm, Ghostty, Warp or another app. ⌘ I still installs right inside Raycast.
  • Zap on uninstall. The Uninstall preference can also remove a cask's support files, like --zap does. Some of those files may be shared with other apps.
  • Auto-updating apps. By default, apps that update themselves (like Chrome) are left out of upgrades. Turn on the Upgrades preference to include them.

Brew needs Homebrew 6.0 or later. Give Search a hotkey and installing a new tool takes a few keystrokes.

Use the Mac App Store

Many apps are on the Mac App Store, which installs and updates them for you without Terminal. Open App Store, search, and click Get. Updates show up under Updates in the sidebar.

The catch is coverage. Lots of popular apps and almost every developer tool aren't on the App Store, which is why so many people use Homebrew for the rest.

New to Raycast?

Here's a quick tour of what else it can do, in under seven minutes:

Frequently Asked Questions

Is Homebrew safe to use on Mac?

Homebrew is a widely used, open-source project. Packages in its official repositories are reviewed, and apps installed as casks are the same signed downloads you'd get from the developer's site. Be more careful with third-party taps, which run their owner's code.

What's the difference between a formula and a cask?

A formula is usually a command-line tool or library, like git or ffmpeg, installed with brew install. A cask is a Mac app with a graphical interface, like Raycast or Firefox, installed with brew install --cask.

Where does Homebrew install apps?

Casks put apps in your Applications folder like a normal install. Homebrew itself and its command-line tools live in /opt/homebrew on Apple silicon Macs and /usr/local on Intel Macs.

How do I update all apps installed with Homebrew?

Run brew update to refresh the package lists, then brew upgrade to update everything that's outdated. brew outdated shows what would change first. In Raycast, the Brew extension's Show Upgrades command lets you pick which ones to upgrade.

How do I uninstall Homebrew?

Homebrew provides an uninstall script in its install repository on GitHub. Run it from Terminal and it removes Homebrew and the packages it installed. Apps you installed as casks are removed too, so back up anything you want to keep.

Search, install and upgrade Homebrew packages from your keyboard. Try Raycast for free.

Download