Guide
Free up space used by Homebrew
Homebrew keeps old versions of what you upgrade and the files it downloaded. These commands remove them.
See how much there is
du -sh "$(brew --cache)"
brew cleanup --dry-runThe first shows the size of the download cache. The second lists what a cleanup would remove without removing it.
Remove old versions and downloads
brew cleanupThis removes old versions of upgraded formulae and downloads more than 120 days old. Homebrew also runs it by itself every 30 days.
Clear the whole download cache
brew cleanup --prune=allThe cache is often the biggest part. It only holds installers, so clearing it is safe. Homebrew downloads them again if it needs them.
Remove dependencies nothing uses
When you uninstall something, the formulae it pulled in stay behind. List them, then remove them:
brew autoremove --dry-run
brew autoremoveFind the big ones
du -sh "$(brew --cellar)"/* | sort -h | tail -20That lists the 20 largest formulae. Uninstall any you don't need with brew uninstall.
In mead
- Maintenance has Preview and Clean up now for
brew cleanup, and Clear cache for the download cache. - Preview orphans and Remove orphaned dependencies run
brew autoremove. - The Cleanup tab lists your largest installed packages by size.
- Leftovers finds files that apps you've deleted left in Application Support, Caches and Preferences.
Install
Get mead
Free and open source. Needs Homebrew already installed. Apple Silicon and Intel.
brew tap DaKiLloTh/mead
brew install --cask mead