Use
man brewto view the manpage.
Command Description brew --cachePrint path to Homebrew’s download cache (usually ~/Library/Caches/Homebrew)brew --cellarPrint path to Homebrew’s Cellar (usually /usr/local/Cellar)brew --configPrint system configuration info brew --envPrint Homebrew’s environment brew --prefixPrint path to Homebrew’s prefix (usually /usr/local)brew --prefix [formula]Print where formulais installedbrew auditAudit all formulae for common code and style issues brew cleanup [formula]Remove older versions from the Cellar for all (or specific) formulae1 brew create [url]Generate formula for downloadable file at url, then open it in$BREW_EDITORor$EDITOR2brew create [tarball-url] --cacheGenerate formula (including MD5), then download the tarball brew create --fink [formula]Open Fink’s search page in your browser, so you can see how they do formulabrew create --macports [formula]Open MacPorts’ search page in your browser, so you can see how they do formulabrew doctorCheck your Homebrew installation for common issues brew editOpen all of Homebrew for editing in TextMate brew edit [formula]Open [formula] in $HOMEBREW_EDITORor$EDITORbrew fetch --force -v --HEAD [formula]Download source package for formula; for tarballs, also prints MD5 and SHA1 checksumsbrew homeOpen Homebrew’s homepage in your browser brew home [formula]Opens formula’s homepage in your browserbrew infoPrint summary of installed packages brew info [formula]Print info for formula(regardless of whetherformulais installed)brew info --github [formula]Open Github’s History page for formulain your browserbrew install [formula]Install formulabrew install --HEAD [formula]Install the HEADversion offormula(if its formula definesHEAD)brew install --force --HEAD [formula]Install a newer HEADversion offormula(if its formula definesHEAD)brew link [formula]Symlink all installed files for formulainto the Homebrew prefix3brew list [formula]List all installed files for formula(or all installed formulae with no arguments )brew outdatedList formulae that have an updated version available ( brew install formulawill install the newer version)brew pruneRemove dead symlinks from Homebrew’s prefix4 brew remove [formula]Uninstall formulabrew searchList all available formula brew search [formula]Search for formulain all available formulaebrew search /[formula]/Search for /formula/(as regex) in all available formulaebrew unlink [formula]Unsymlink formulafrom Homebrew’s prefixbrew updateUpdate formulae and Homebrew itself brew upgradeInstall newer versions of outdated packages You can update outdated packages with any of the following:
brew upgradebrew install `brew outdated`brew outdated | xargs brew install1 To delete a specific version, just go to the folder in the Cellar and
rm -rfit; alternatively, drag it to the trash in Finder.2 Homebrew tries to guess the formula name and version. If it fails, you’ll have to make your own template. I suggest copying
wget’s.3 Symlinking is automatically performed when installing formulae. It’s useful for DIY installation, or swapping out versions of a package you have multiple installs of.
4 This is generally not needed. However, it can be useful if you are doing DIY installations.
This page was waaay too hard to find. Every page / readme / tutorial about homebrew is just how to install the damn thing, not how to use it.