Skip to content

Homebrew

The macOS package manager

open sourceDevelopment Editor's pick

Homebrew is the package manager no developer Mac goes without. It installs CLI tools (formulae) and GUI apps (casks) with one command, neatly under /opt/homebrew. Upgrading everything is a single brew upgrade. Every app in this directory is annotated with its brew token.

Official site

// What it is for

  • One command installs and updates everything: CLI tools (formulae) and GUI apps (casks) alike
  • A Brewfile describes the whole machine as text — a new Mac comes up with a single brew bundle
  • brew upgrade updates everything installed through brew instead of a dozen separate updaters
  • Everything lives in one prefix and uninstalls as cleanly as it installed

// Common questions

Should I run brew with sudo?

No, and it matters: Homebrew deliberately installs into a directory your user owns. Installing formulae under sudo breaks file ownership and produces permission errors you will have to repair by hand later.

What is the difference between a formula and a cask?

A formula is a command-line program built for Homebrew (git, jq, ripgrep). A cask is a regular macOS app from the vendor that Homebrew downloads and drops into /Applications. The commands differ: brew install git versus brew install --cask raycast.

// New Mac setup step

HomebrewThe package manager everything else is installed through. Right after the install, add brew to your PATH — that is the forgotten step behind the classic "command not found" reply.

// Referenced in these problem write-ups

// CONNECT

Contact Information

Submit a request or write to me directly on Telegram. I'll reply within 24 hours.