Skip to main content

Homebrew

Homebrew is the most popular package manager for macOS. It simplifies installing command-line tools and applications.

Official documentation: brew.sh

Installation

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

Add to PATH (Apple Silicon Macs)

After installation on Apple Silicon Macs, add Homebrew to your PATH:

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
source ~/.zshrc

Verify Installation

brew --version

Quick Reference

For complete usage, see the Homebrew Documentation.

brew install <package>       # Install a package
brew install --cask <app> # Install a GUI application
brew update # Update Homebrew
brew upgrade # Upgrade all packages
brew list # List installed packages
brew search <query> # Search for packages