ConfigsApr 12, 2026·2 min read

Homebrew — The Missing Package Manager for macOS and Linux

Homebrew is the missing package manager for macOS (and Linux). Installs CLI tools, libraries, and GUI apps (casks) that Apple or your Linux distro did not include. The de facto way developers set up their Mac development environment.

TL;DR
Homebrew installs CLI tools, libraries, and GUI apps on macOS and Linux with simple brew commands.
§01

What it is

Homebrew is the de facto package manager for macOS (and Linux). It installs CLI tools, libraries, and GUI applications (called casks) that Apple or your Linux distribution did not include. It is the first tool most developers install on a new Mac.

Homebrew targets developers, sysadmins, and power users who need to install and manage software beyond what the App Store or system package managers provide.

The project is actively maintained and suitable for both individual developers and teams looking to integrate it into their existing toolchain. Documentation and community support are available for onboarding.

§02

How it saves time or tokens

Homebrew reduces software installation to a single command. Instead of downloading DMGs, dragging to Applications, and configuring PATH variables, you run brew install and the tool is ready. Homebrew also handles updates (brew upgrade), cleanup (brew cleanup), and dependency management automatically.

For teams evaluating multiple tools in the same category, the clear documentation and active community reduce the time spent on research and troubleshooting. Getting started takes minutes rather than hours of configuration.

§03

How to use

  1. Install Homebrew by pasting the install command from brew.sh into your terminal.
  2. Use brew install <package> for CLI tools and brew install --cask <app> for GUI applications.
  3. Keep everything updated with brew update && brew upgrade.
  4. Search for packages with brew search <query> or browse formulae.brew.sh.
§04

Example

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

# Install common developer tools
brew install git node python3 go rust
brew install jq fzf ripgrep fd bat delta

# Install GUI apps via casks
brew install --cask visual-studio-code iterm2 docker firefox

# Update everything
brew update && brew upgrade && brew cleanup

# List installed packages
brew list --formula
brew list --cask
§05

Related on TokRepo

§06

Common pitfalls

  • Running brew update infrequently. Homebrew's package index goes stale quickly. Run brew update before installing new packages to get the latest versions.
  • Using sudo brew on macOS. Homebrew is designed to run without root privileges. Using sudo can break permissions and cause hard-to-debug issues.
  • Not cleaning up old versions. brew cleanup removes outdated downloads and old formula versions. Without periodic cleanup, your Homebrew cache can consume gigabytes of disk space.
  • Not reading the changelog before upgrading. Breaking changes between versions can cause unexpected failures in production. Pin your version and review release notes.

Frequently Asked Questions

Does Homebrew work on Linux?+

Yes. Homebrew on Linux (formerly Linuxbrew) installs software in your home directory without requiring root access. It uses the same commands and formulae as the macOS version.

What is the difference between a formula and a cask?+

Formulae install CLI tools and libraries (e.g., git, node, python). Casks install GUI applications (e.g., VS Code, Firefox, Docker Desktop). Use `brew install` for formulae and `brew install --cask` for casks.

Can I use Homebrew to install specific versions?+

Homebrew installs the latest version by default. For specific versions, you can tap homebrew/cask-versions for apps or use brew extract to pin a specific formula version in a custom tap.

How do I uninstall Homebrew?+

Run the uninstall script from the Homebrew GitHub repository. This removes Homebrew, all installed formulae, and casks. Back up your brew list first if you want to reinstall later.

Is Homebrew safe?+

Homebrew formulae are community-reviewed and hosted on GitHub. All formulae go through a PR review process. Casks download software from official developer sites. However, always verify that you are installing legitimate packages.

Citations (3)

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets