Installing Mac OS X updates from command line

Mac OS X provides a command "softwareupdate" to update your mac from terminal. The command is very easy to use and can be used as below.

To install all the mac os x updates:

sudo softwareupdate -i -a 

To install only recommended os updates:

sudo softwareupdate -i -r

Popular posts from this blog

How to disable USB ports on Mac OS X Mavericks, Yosemite or El Capitan ?

How to enable root login in gnome on Debian 6 or 7