Skip to content

Keep homebrew up to date

Published:

1 min read

I’ve been using homebrew for as long as I can remember using macOS. I recently learned about cleaning up old and outdated files using the brew cleanup command. I also run it sequentially with update and upgrade commands:

brew update && brew upgrade && brew cleanup

Sometimes, I periodically upgrade packages that are installed using brew. Thus, I thought, why not add an alias such as below in my .zshrc file:

alias hbc="brew update && brew upgrade && brew cleanup"

This helps me to update and upgrade outdated packages, and clean up old files. Now, whenever I have to run all three tasks, I simply run hbc in the terminal.

Upgrading outdated packages periodically saves me from a situation when installing a new package, homebrew will upgrade all outdated packages first.


Previous Post
Convert png to jpg using ffmpeg
Next Post
2022 - A year in review

I'm a software developer and technical writer. On this blog, I share my learnings about both fields. Recently, I have begun exploring other topics, so don't be surprised if you find something new here.

Currently, working as a documentation lead at Expo.