2

I have used brew to install software, is there a similar command line mechanism to download the OS's security updates?

  • 2
    Take a look at the manual for softwareupdate. – fd0 Sep 2 '18 at 18:05
4

softwareupdate can perform updates to macOS.
List updates with softwareupdate -l and install recommended updates with

sudo softwareupdate -ir

where -i installs specified updates and -r selects all recommended updates.

|improve this answer|||||
  • Warning: by default, softwareupdate does not automatically restart the system even when when an update requires it. You need to either add the -R flag, or notice that the update has a "[restart]" suffix in the list and restart manually after installing. – Gordon Davisson Sep 2 '18 at 19:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .