Homebrew Cheatsheet - macOS Package Manager Reference
All essential Homebrew commands organized by use case, with 38+ entries you can copy and run directly. Find the right command fast when you need it.
Back to Dev ToolsBasics 12
brew install wgetInstall a CLI tool
brew uninstall wgetUninstall
brew updateUpdate Homebrew itself
brew upgradeUpgrade all installed packages
brew upgrade wgetUpgrade a specific package
brew listList installed
brew info wgetView package info
brew search nginxSearch for a package
brew cleanupClean up old-version caches
brew outdatedSee upgradable packages
brew reinstall wgetReinstall (fix corruption)
brew autoremoveAuto-remove unneeded dependencies
Cask GUI Apps 5
brew install --cask visual-studio-codeInstall a GUI app
brew uninstall --cask visual-studio-codeUninstall a GUI app
brew list --caskList installed GUI apps
brew search --cask chromeSearch for GUI apps
brew upgrade --caskUpgrade all GUI apps
Services 5
brew services listList all service statuses
brew services start mysqlStart and enable on boot
brew services stop mysqlStop a service
brew services restart mysqlRestart a service
brew services run mysqlRun without enabling on boot
Taps & Mirrors 5
brew tap homebrew/cask-fontsAdd a third-party tap
brew untap homebrew/cask-fontsRemove a third-party tap
brew tapList added taps
export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"Switch API mirror temporarily
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"Switch Bottle mirror temporarily
Troubleshooting 7
brew doctorCheck environment issues
brew configView Homebrew config
brew deps wgetView dependencies
brew pin wgetPin a version (no upgrade)
brew unpin wgetUnpin a version
brew leavesSee top-level manually installed packages
brew uses --installed wgetSee which installed packages depend on it
Bundle Management 4
brew bundle dumpDump installed list to Brewfile
brew bundle installInstall from Brewfile in batch
brew bundle cleanupClean up packages not in Brewfile
brew bundle checkCheck if Brewfile dependencies are met
Tips
- On slow networks, switch mirrors before install, or bottle downloads often time out.
- Services managed by brew services live in ~/Library/LaunchAgents/; check there if something breaks.
- brew cleanup deletes old versions and download caches; run it when disk is tight.
Official References
Commands are compiled from the official docs below. Click to verify the latest usage.
Maintained by LaoHand
Publicly updated on Jul 21, 2026, continuously proofread against official docs.
Contact Us
Wrong command or description? Send us corrections, business inquiries or product feedback by email.
Contact Us