Here’s a few tricks to help keep your Mac running on tip top condition and cleanup bloated or cached files.
The Homebrew ecosystem helps Mac users download apps and packages.
Homebrew – the missing package manager for Mac.
To install Homebrew, run the following script below.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then you can run a formula to download and install packages and apps. Here’s the full list of formulas.
If you’ve run Homebrew for a while, you may eventually run into package discrepancies or issues. Brew doctor is there to help! Also, the brew cleanup -s command can help to cleanup any cached packages that are no longer necessary. This can help return several hundreds of MB!
brew upgrade brew doctor brew cleanup -s
Next, if your development Mac is running docker, you may have lingering images that can be discarded. To ‘prune’ the old images, you simply invoke the docker prune command.
docker system prune -a WARNING! This will remove: - all stopped containers - all networks not used by at least one container - all images without at least one container associated to them - all build cache y
Total reclaimed space: 33.58GB