How much space is Homebrew using?

Homebrew keeps old versions and downloaded installers until you tell it to clean up.

Measure

 Terminal
du -sh "$(brew --cache)" "$(brew --prefix)/Cellar"
brew cleanup -n     # dry run: shows what would be removed

Clean

 Terminal
brew cleanup          # old versions + downloads older than 120 days
brew cleanup --prune=all   # all cached downloads
brew autoremove       # dependencies nothing needs any more
Run brew cleanup -n first: it lists everything and deletes nothing.
Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free beta for Mac.

Download for Mac