Install Homebrew
The essential package manager on Mac.
- First install the Xcode command line tools (see the dedicated guide).
- Paste the official command from brew.sh:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- On Apple silicon, add brew to your PATH:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"
- Install a tool or an application:
brew install wget brew install --cask firefox
- Maintenance:
brew update && brew upgrade brew cleanup brew doctor