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


Click here to return to the 'A script to install all required Software Updates' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to install all required Software Updates
Authored by: neuralstatic on Sep 22, '08 12:53:47PM
maybe i'm missing something, but you could also just do a

sudo softwareupdate -i -a; reboot to install all, reboot.

[ Reply to This | # ]

A script to install all required Software Updates
Authored by: rpaege on Sep 23, '08 11:53:00AM

Thank you neuralistic. In the absence of any kind of response from the OP, your tip (one I should have thought of myself) is excellent advice!



[ Reply to This | # ]
A script to install all required Software Updates
Authored by: Echidna on Sep 24, '08 05:47:00AM

Ah, except that it doesn't solve the problem that the script above does. This will just do one iteration. Once you boot back up, there are probably other updates that were dependent upon the ones you just installed that are now active in Software Update.

The script above will repeatedly boot, install, and reboot... until there are no more new updates. Any time you update from a fresh install, there are about 3 or 4 iterations of the update, reboot processes... and this script saves you the headache of manually updating each time. :)



[ Reply to This | # ]
A script to install all required Software Updates
Authored by: rpaege on Sep 23, '08 01:26:36PM

I get the error "reboot: Operation not permitted" after running the command.



[ Reply to This | # ]
A script to install all required Software Updates
Authored by: rpaege on Sep 23, '08 01:55:40PM

Used:

sudo softwareupdate -i -a; sudo reboot


Seems to work OK.

Thanks for the tip!



[ Reply to This | # ]