Software update from terminal
To run software update via a terminal session just run:
softwareupdate -i -a
This automatically downloads and installs all appropriate updates. Using the -r instead of -a switch downloads only recommended updates.
This command is helpful when used with Apple Remote Desktop’s send unix command tool.
