Last updated on April 28th, 2020 at 03:29 am
The cleanup (brew cleanup
) command will remove outdated installed package versions. To affect a particular package/formula, you may supply a formula name like so: brew cleanup $FORMULA
.
brew cleanup
only cleans outdated package versions if you have the newest version installed, so first brew upgrade
then brew cleanup
brew upgrade
brew cleanup
It saved me 5GB at /usr/local/