OSX software updates via command line
Just use the following command:
softwareupdate -i -a
This installs all available updates, but doesn’t restart, so that might need to be done manually.
The blurb:
usage: softwareupdate
-l | --list List all appropriate updates
-d | --download Download Only
-i | --install Install
Per-user preferences:
--ignore
-v | --verbose Enable verbose output
-h | --help Print this help