Recover space from unused Homebrew Packages
If you're a Mac user, chances are you might be using Homebrew to install packages that Apple didn't provide. While it's a great platform, it tends to keep older copies of the package you've installed when you run
brew update && brew upgrade which does take up unnecessary space.
To see how much space the older versions of the packages are using, run
brew cleanup -n which lists how much space you'll recover. When I ran it on my Mac, this is what I got
==> This operation would free approximately 1.6GB of disk space.
To actually recover the space, just run
brew cleanup and this is what I got
==> This operation has freed approximately 1.6GB of disk space.
Get back those precious storage space :smile: