Home > Mac administration, macOS > New automated restart option added to macOS 10.13.4’s softwareupdate command line tool

New automated restart option added to macOS 10.13.4’s softwareupdate command line tool

With the release of macOS 10.13.4, Apple has added a new option to the softwareupdate command line tool. As part of the installation options, softwareupdate now includes the option to automatically restart or shutdown (as appropriate) following the installation of updates that need a restart or shutdown to complete properly.

-R | --restart		Automatically restart (or shut down) if required to complete installation.

Screen Shot 2018 03 09 at 4 24 17 PM

 

As an example, to use the new option to restart if needed after installing all available updates, please run the command shown below with root privileges:

softwareupdate --install --all --restart

In the event that no updates require a restart or shutdown, the Mac is not restarted.

Screen Shot 2018 03 09 at 4 18 59 PM

Categories: Mac administration, macOS
  1. March 30, 2018 at 7:42 am

    Great 🙂

  2. JimH
    April 11, 2018 at 6:57 pm

    Apple, welcome to 2001. I’m just surprised it didn’t come in the form of an emoji.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: