forked from mkalmes/brewupdate
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# brewupdate # | ||
|
||
brewupdate is a [launchd agent][launchd] to update [homebrew][homebrew] formulae automaticly every day at 11 AM (local time). | ||
|
||
Brewupdate will not upgrade your installed formulae. It's sole responsibility is to fetch new formulae. | ||
|
||
## How to Install ## | ||
To 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 | ||
``` | ||
|
||
## How to Upgrade ## | ||
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 | ||
``` | ||
|
||
## … and where do I see what's updated? ## | ||
Since OS X 10.8, [Apple removed the redirection][apple-removed-redirection] of `stdout` and `stderr` to `system.log`. | ||
|
||
On OS X 10.5 to 10.7, <code>brewupdate</code> redirects the output to <code>/var/log/system.log</code> and can be easily viewed with <code>/Applications/Utilities/Console.app</code>. Use the search filter <code>net.mkalmes.brewupdate</code> on "All Messages" to display the list of new and updated formulae. | ||
|
||
[launchd]: http://developer.apple.com/library/mac/#technotes/tn2083/_index.html | ||
[homebrew]: https://github.com/mxcl/homebrew/ | ||
[apple-removed-redirection]: http://stackoverflow.com/a/15655471/1712728 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters