Homebrew
Cleanup Commands
Cleanup operations
11 commands
Commands
Cleanup old versions
$ brew cleanup
Remove old versions of packages.
Cleanup dry run
$ brew cleanup -n
Preview what would be cleaned up.
Cleanup specific package
$ brew cleanup <package>
Cleanup old versions of one package.
Autoremove unused deps
$ brew autoremove
Remove unused dependencies.
Diagnose issues
$ brew doctor
Check for potential problems.
Check outdated
$ brew outdated --verbose
Show outdated with versions.
Update Homebrew
$ brew update
Update Homebrew formulae database.
Upgrade and cleanup
$ brew upgrade && brew cleanup
Upgrade all and cleanup after.
Missing files
$ brew missing
Check for missing dependencies.
Cache path
$ brew --cache
Show Homebrew cache directory.
Clear cache
$ rm -rf $(brew --cache)
Delete all cached downloads.