Homebrew Package Update Notifications via Growl
Over the weekend, I finally upgraded my system to Mac OS Lion. I also took the opportunity to do a completely fresh install of my system, doing a final TimeMachine backup before erasing the hard drive and then installing Lion off a USB thumb drive.
I have long used MacPorts as my open source package manager, but I've had issues recently with certain ports not being updated or being out of date. So I was really interested in Homebrew. The fact that it is all on github, open and actively developed really appealed to me. After getting it up and running, I wanted to port my package update notifier to use Homebrew. Doing so was really quite easy. Here's what I came up with, which is also in my dotfiles on github:
Assuming the script is at ~/bin/brew-update-notifier
, you can install the script to a crontab by running sudo crontab -e
, then adding the line 0 12 * * * /Users/<username>/bin/brew-update-notifier
to the end of the file (substituting <username>
for your username, or wherever you've put the script). I've chosen to run the script every day at noon because my computer is likely to be on and connected to a network.