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 wgetCasks: 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 firefoxbrew 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
| Formula | Cask | |
|---|---|---|
| What | CLI tools, libraries, servers | Mac apps, fonts, plugins |
| Installed to | Homebrew's Cellar, linked into its bin folder | /Applications |
| Dependencies | Managed by Homebrew | Rarely any |
| Updates | brew upgrade | brew upgrade, plus --greedy for self-updating apps |
| List installed | brew list --formula | brew 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.