Does OS X support a mechanism for security updates similar to apt-get?
Does OS X support a mechanism for security updates similar to apt-get?
I have used brew to install software, is there a similar command line mechanism to download the OS's security updates?
softwareupdate
1 Answer
1
softwareupdate
can perform updates to macOS.
List updates with softwareupdate -l
and install recommended updates with
softwareupdate
softwareupdate -l
sudo softwareupdate -ir
where -i
installs specified updates and -r
selects all recommended updates.
-i
-r
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 at 19:30
softwareupdate
-R
Thanks for contributing an answer to Ask Different!
But avoid …
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Take a look at the manual for
softwareupdate
.– fd0
Sep 2 at 18:05