Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to shutdown + update the Mac ? It's annoying to wait for it to restart when I just want to click update and go home.

I've seen this once on a MacBook and I can't find how to do it.

share|improve this question
1  
This may not be a good idea; some updates require 2 reboots to finish -- it reboots into a minimal OS, installs files that weren't safe to replace on a fully-operational system, then reboots again. What you really want it to do is to reboot, finish the update, then shut down; I don't think there's a way to do that. –  Gordon Davisson Sep 21 '10 at 21:11
    
If you're just concerned about power consumption, the login screen can go to sleep. Check your energy settings in System Preferences –  Daniel Beck Sep 22 '10 at 6:12
add comment

3 Answers 3

up vote 9 down vote accepted

I think that if you download all updates and then shutdown your mac instead of restarting (ignoring popup), it will install updates and shutdown.

share|improve this answer
    
I do this all the time... in particular, if you do the update, but when it asks to reboot, you say "not now" and kill the update process, when you shut down the computer it will ask if you want to install. Click yes, and walk away. –  Brian Postow Sep 21 '10 at 17:17
    
+1, this works fine for me too –  trolle3000 Sep 23 '10 at 11:54
add comment

This method seems to be more successful for me:

$ sudo sh -c "softwareupdate -i -a; shutdown -h now"

The above sudo -s technique simply opened a new root shell for me (OS X Lion) which, upon exiting, ran the following two commands as a non-root user.

I guess an alternative would be to switch to root first, then run the two commands (separated by semi colon)

$ sudo su -
$ softwareupdate -i -a; shutdown -h now
share|improve this answer
add comment

If you use the GUI software update, you may need to stick around and select "Yes" for certain dialog boxes. If you really want to minimize your time and effort involved in applying updates and then shutting down the computer, try this:

sudo -s; softwareupdate -i -a; shutdown -h now
share|improve this answer
    
streetpc does NOT want to reboot. –  lajuette Sep 21 '10 at 16:05
    
I'm not sure about the behaviour of sudo softwareupdate -i -a but if you want to shutdown instead of rebooting try sudo shutdown NOW. –  dtlussier Sep 21 '10 at 16:30
2  
If the installation takes more than 5 minutes, your sudo validation will expire and the second sudo will hang waiting for you to retype your password. Better to use sudo -s and then softwareupdate -i -a; shutdown -h now –  Gordon Davisson Sep 22 '10 at 3:12
    
-1: sudo doesn't work like that! You want sudo -s "softwareupdate -i -a; shutdown -h now" (see Nick's answer) –  Blacklight Shining Aug 1 '13 at 14:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.