1. Howto
  2. TL;DR
  3. Downloads
  4. Related stuff

Simple interactive command for Homebrew (Mac OSX) to check for updates, list outdated packages, upgrade them and clean up after.

Howto

Save to <span class="lang:sh highlight:0 decode:true crayon-inline">~/.bin/update
Add <span class="lang:sh highlight:0 decode:true crayon-inline">$HOME/.bin  to your $PATH in <span class="lang:sh highlight:0 decode:true crayon-inline">~/.bash_profile
and of course <span class="lang:sh highlight:0 decode:true crayon-inline">chmod +x ~/.bin/update

Just run <span class="lang:js decode:true crayon-inline ">update for the interactive check, or <span class="lang:js decode:true crayon-inline ">update -y  to skip the question.

TL;DR

Update 7 May 2015
Added –all argument for the new Brew

Downloads

homebrew_update.sh

PLAIN (727 B) ▼ Download