Filed under: Terminal Tips
Terminal Tips: Install software updates from the command line

If you want to do an automatic install of all the updates for your particular Mac, first log in as an administrative user. Then open Terminal.app (located in /Applications/Utilities), and type (or copy/paste) the following command:
sudo softwareupdate -i -a
and hit Return. Next, you'll be prompted to enter your password; do so, and then hit Return. The application will then look for available updates, download them, and then install them. You will see the progress in Terminal. If no updates are available, Terminal will let you know.
This command replicates the functionality of the normal Software Update utility. However, you can use it on other machines in the background via SSH remote login, or you could apply a specific update rather than the full list of available patches. To see all the command options, type
man softwareupdate at the Terminal prompt.Want more tips and tricks like this? Visit TUAW's Terminal Tips section!
Remember the good old days when we didn't have to worry about sudo or root? We have extensions, and we liked it! Why,
I remember when OS X couldn't even burn a CD! Ah, OS 9 how we miss you.
![TUAW [Cafepress]](http://www.blogsmithmedia.com/www.tuaw.com/media/tuaw-cafepress-promo.png)

