List All Available Mac Software Updates from Command Line
To get a list of available software updates, type the following command:
|
|
The use of sudo is required to get superuser privileges to actually install the updates.
Install Recommended Updates Only from Terminal in OS X
You can also install only the recommended updates with:
|
|
If there are any updates you want to ignore, you can do so with the –ignore flag, for example:
|
|
This is really useful for remotely updating Macs, setting up automated updates via a bash script, or if you just want to geek out.
This tool is available in all versions of OS X and therefore it can be used to update just about any Mac with necessary software updates. This is one way to avoid using the Mac App Store to update a Mac if that is necessary for whatever reason.