Guide

Free up space used by Homebrew

Homebrew keeps old versions of what you upgrade and the files it downloaded. These commands remove them.

The mead Maintenance view, Cleanup tab, listing the largest installed packages by size.

See how much there is

du -sh "$(brew --cache)" brew cleanup --dry-run

The 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 cleanup

This 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=all

The 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 autoremove

Find the big ones

du -sh "$(brew --cellar)"/* | sort -h | tail -20

That 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