Run SoftwareUpdate from command line – OSX

I suddenly found the need for running the SoftwareUpdate application on my Mac via SSH.

Some time on Google and i found this to be a plain simple task
Open “terminal” (or if you connect remotely through SSH)

Command below will show you the triggers

To download and install updates, run

That should run your update and install all downloaded packages.