How To Update macOS Using Command Line Software Update Tool

https://‮.www‬lautturi.com
How To Update macOS Using Command Line Software Update Tool

To update macOS using the command line software update tool, you can use the softwareupdate command. This command allows you to check for available updates, install them, and schedule automatic updates.

To check for available updates, you can use the --list option. For example, to check for updates to the macOS operating system and installed software, you can run the following command:

sudo softwareupdate --list

This will display a list of available updates, along with their names and sizes.

To install available updates, you can use the --install option, followed by the names of the updates that you want to install. For example, to install all available updates, you can run the following command:

sudo softwareupdate --install

This will install all available updates, and may require a restart to complete the installation.

To schedule automatic updates, you can use the --schedule option, followed by the schedule that you want to use. For example, to schedule automatic updates every day at 3:00am, you can run the following command:

sudo softwareupdate --schedule on --daily --verbose

This will enable automatic updates on a daily basis, and will print verbose output when updating the system.

By using the softwareupdate command, you can easily manage updates to your macOS system from the command line.

Created Time:2017-10-16 14:38:43  Author:lautturi