Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.6: A script to display available Apple software updates' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: A script to display available Apple software updates
Authored by: regulus on May 27, '11 08:24:00AM

While interesting, that's certainly a complicated process to check for software updates from the command line. Type this in the Terminal to check for updates:
softwareupdate -l

Type this to install the updates (this requires admin rights):
sudo softwareupdate -i -a

Obviously there's other options if you want to gain more control over which updates are installed but that's the basics. You can even run them on a remote machine if you ssh into it first.

---
Hank
http://www.hamsoftengineering.com



[ Reply to This | # ]
10.6: A script to display available Apple software updates
Authored by: _aeon on May 27, '11 08:56:07AM
Mac OS X Software Update Notifications for Non-Admin-Users:
http://blog.kaputtendorf.de/2009/02/22/updatecheck/

It works pretty well :)

[ Reply to This | # ]
10.6: A script to display available Apple software updates
Authored by: Michael_S on May 27, '11 07:20:25PM
Yup. As it is written and stored at that hallow place on the Internet:
Thou shalt study thy libraries and strive not to reinvent them without cause, that thy code may be short and readable and thy days pleasant and productive.
-- The Ten Commandments for C Programmers. By extension, applies to Unix utilities as well. That said, I didn't know about the command line utility either, and am glad about the comments here often bringing out such solutions.

[ Reply to This | # ]