Homebrew formulae vs. casks: what's the difference?

Updated · by Nico Wickersheim

Homebrew installs two kinds of packages: formulae and casks. The short version: formulae are command-line tools and libraries, casks are Mac apps.

Formulae: command-line tools and libraries

Tools like git, wget, node or python are formulae. Homebrew usually installs them from a precompiled "bottle" and builds them from source only when no bottle is available. They live in Homebrew's Cellar (/opt/homebrew/Cellar on Apple Silicon, /usr/local/Cellar on Intel) and are linked into Homebrew's bin folder, so they're on your PATH. Homebrew also installs and tracks their dependencies.

brew install wget

Casks: Mac apps

Apps with a graphical interface, like Firefox, Visual Studio Code or Rectangle, are casks. Fonts and some plugins are distributed as casks too. Homebrew downloads the developer's official app and moves it into /Applications, just like you would by hand.

brew install --cask firefox

brew install firefox works as well, because Homebrew looks for a cask when no formula has that name. Add --cask or --formula when a name exists as both.

The differences at a glance

FormulaCask
WhatCLI tools, libraries, serversMac apps, fonts, plugins
Installed toHomebrew's Cellar, linked into its bin folder/Applications
DependenciesManaged by HomebrewRarely any
Updatesbrew upgradebrew upgrade, plus --greedy for self-updating apps
List installedbrew list --formulabrew list --cask

Updating casks works slightly differently

Apps with a built-in updater are skipped by brew upgrade unless you add --greedy. Read more in how to update all Homebrew packages.

And what are taps?

A tap is an additional repository of formulae or casks, for example from a company that publishes its own tools. brew tap owner/repo adds it, and its packages install like any other.

Prefer clicking over typing?

WailBrew is a free, open-source Homebrew GUI for macOS. It runs the same brew commands for you, behind a fast native interface.

Download WailBrew

or brew install --cask wailbrew

More Homebrew guides