Homebrew is the missing package manager for macOS and Linux. Install it by running the official installer in your terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
On Apple Silicon Macs (M1, M2, M3, M4) Homebrew lives in /opt/homebrew:
eval "$(/opt/homebrew/bin/brew shellenv)"
On Linux and Windows Subsystem for Linux (WSL) it lives in /home/linuxbrew/.linuxbrew:
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install wget — install a formula (command-line tool)brew install --cask firefox — install a cask (macOS app)brew update and brew upgrade — update Homebrew and upgrade installed packagesbrew search <name> — search packagesbrew uninstall <name> — remove a packagebrew doctor — diagnose problems with your Homebrew install