macOS Homebrew Cheat Sheet¶
Quick-reference guide for installing, updating, and cleaning up software on macOS with Homebrew.
Install Homebrew:
Configure Shell Environment (~/.zprofile):
Update Homebrew & Formulae Metadata:
Upgrade All Installed Formulae & Casks:
Upgrade Including Auto-Updating GUI Casks:
Install CLI Package (Formula):
Install GUI Application (Cask):
Search Formulae and Casks:
Inspect Package Dependencies & Analytics:
List Installed Formulae:
List Installed Casks:
Show Dependency Tree for Installed Packages:
Uninstall Package Only:
Completely Purge Cask (Removes App, Caches, and .plist Preferences):
Remove Orphaned Dependencies:
Purge Old Versions & Clear Download Cache:
Export Installed Packages to a Brewfile (For Reproducible Setup):
Install All Packages from a Brewfile:
Audit Homebrew Installation Health:
Sources & Verification¶
- Homebrew documentation: docs.brew.sh/Manpage