OS X Software Update From Command Line

Published on March 24, 2011, by in osx.



How can I run Software Update from the command line in OS X?

This command will update OS X via the terminal:

sudo softwareupdate -i -a

The output will look something like this:

$ sudo softwareupdate -i -a
Password:
Software Update Tool
Copyright 2002-2009 Apple

   Checking packages…
Installing
   Waiting for other installations to complete…
   Validating packages…
   Writing files…
   Running package scripts…
   Optimizing system for installed software…
   Moving items into place…
   Registering updated components…
   Running package scripts…
   Registering updated applications…
   Writing package receipts…
   Cleaning up…
Installed Mac OS X Update
Done.

You have installed one or more updates that requires that you restart your
computer.  Please restart immediately.
$

To reboot type this:

$ sudo reboot

Sweet!

Related posts:

  1. Batch Resize from Command Line

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Home osx OS X Software Update From Command Line
© Copyleft scottlinux.com CC BY-SA 3.0