brewupdate is a launchd agent to update homebrew formulae automatically every day at 11 AM (local time).
Brewupdate will not upgrade your installed formulae. Its sole responsibility is to fetch new formulae.
Run the following command in the terminal:
curl -L https://github.com/mkalmes/brewupdate/raw/develop/brewupdate-install.sh | bash
To manually install brewupdate
, copy the plist to ~/Library/LaunchAgents
and run the command launchctl load ~/Library/LaunchAgents/net.mkalmes.brewupdate.plist
to load the LaunchAgent into the launchd manager.
Here is a quick rundown:
> mkdir ~/Library/LaunchAgents
> cp net.mkalmes.brewupdate.plist ~/Library/LaunchAgents
> launchctl load ~/Library/LaunchAgents/net.mkalmes.brewupdate.plist
If you installed a previous version of brewupdate, unload the loaded LaunchAgent, copy the new agent to ~/Library/LaunchAgents
, and load the copied LaunchAgent.
Here is a quick rundown:
> launchctl unload ~/Library/LaunchAgents/net.mkalmes.brewupdate.plist
> cp net.mkalmes.brewupdate.plist ~/Library/LaunchAgents
> launchctl load ~/Library/LaunchAgents/net.mkalmes.brewupdate.plist
Since OS X 10.8, Apple removed the redirection of stdout
and stderr
to system.log
.
On OS X 10.5 to 10.7, brewupdate
redirects the output to /var/log/system.log
and can be easily viewed with /Applications/Utilities/Console.app
. Use the search filter net.mkalmes.brewupdate
on "All Messages" to display the list of new and updated formulae.
Code is under the BSD 2-Clause license.