How to remove outdated installed versions of Homebrew packages in MacOS?

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/

Tags:

Discover more from Juzhax Technology

Subscribe now to keep reading and get access to the full archive.

Continue reading