til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

Cleaning your homebrew cellar

At some point a lot of cruft will have accumulated in your homebrew cellar, by cruft I mean old versions of packages you use.

Luckily this can easily be addressed.

$ brew cleanup

The Medium article listed below presents a Bash script to a bit more, I have added my own version here:

#!/bin/bash

brew update
brew upgrade
brew cleanup -s
brew cask cleanup
brew doctor
brew missing

Resources and References

  1. StackOverflow
  2. [Medium: “Keeping macOS clean: this is my osx/brew/…update CLI command”