Jump to content

Check and Install Mac OS X Software Updates from the Terminal


Recommended Posts

Posted

<div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2011/01/software-update-command-line-mac.gif" alt="software-update-command-line-mac" title="software-update-command-line-mac" width="531" height="209" class="aligncenter size-full wp-image-11677" /></p>

<p>You can check for available updates, ignore packages, and install any or all <a href="http://osxdaily.com/category/mac-os-x/">Mac OS X</a> Software Updates directly from the command line.</p>

<p>To get a list of available software updates, type the following command:</p>

<p><code>softwareupdate -l</code></p>

<p>You will see a list of available updates. You can then install all available software updates with the following command:</p>

<p><code>sudo softwareupdate -iva</code></p>

<p>The use of sudo is required to get superuser privileges to actually install the updates. You can also install only the recommended updates with:</p>

<p><code>sudo softwareupdate -irv</code></p>

<p>Or you can just install specific software updates by specifying the shorthand package name from the previous list, like so:</p>

<p><code>sudo softwareupdate -i iPhoneConfigurationUtility-3.2</code></p>

<p>If there are any updates you want to ignore, you can do so with the –ignore flag, for example:</p>

<p><code>sudo softwareupdate --ignore iWeb3.0.2-3.0.2</code></p>

<p>If you want to see all the available command line shortcuts for Software Update, just type:</p>

<p><code>softwareupdate -h</code></p>

<p>This is really useful for remotely updating Macs, setting up automated updates via a bash script, or if you just want to geek out.</p>

</div>

<p><a href="http://feedads.g.doubleclick.net/~a/nj5JkPcFUQL8BQyS-EKrPvB7st8/0/da"><img src="http://feedads.g.doubleclick.net/~a/nj5JkPcFUQL8BQyS-EKrPvB7st8/0/di" border="0" ismap="true"></img></a><br/>

<a href="http://feedads.g.doubleclick.net/~a/nj5JkPcFUQL8BQyS-EKrPvB7st8/1/da"><img src="http://feedads.g.doubleclick.net/~a/nj5JkPcFUQL8BQyS-EKrPvB7st8/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">

<a href="http://feeds.feedburner.com/~ff/osxdaily?a=El8giD251lg:jcUQBImx0QY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=El8giD251lg:jcUQBImx0QY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=El8giD251lg:jcUQBImx0QY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=El8giD251lg:jcUQBImx0QY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=El8giD251lg:jcUQBImx0QY:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=El8giD251lg:jcUQBImx0QY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=El8giD251lg:jcUQBImx0QY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a>

</div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/El8giD251lg" height="1" width="1"/>

 

View the full article

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic


×
×
  • Create New...