softwareupdate

From RaySoft

softwareupdate checks for new and updated versions of your software based on information about your computer and current software.[1]

Documentation

Syntax

softwareupdate COMMAND [PARAMETER ...]

Subcommands & Parameters

-d ARGS, --download ARGS
Each update specified by ARGS is downloaded but not installed. The values of ARGS are the same as for the --install command.
-i ARGS, --install ARGS
Each update specified by ARGS is downloaded and installed. ARGS can be one of the following:
-r, --recommended
All updates that are recommended for your system. These are prefixed with a * character in the --list output.
-a, --all
All updates that are applicable to your system, including those non-recommended ones, which are prefixed with a - character in the --list output.
PACKAGE [...]
One or more specified updates. The --list output shows the item names you can specify here, prefixed by the * or - characters.
--ignore IDENTIFIER [...]
Manages the per-machine list of ignored updates. The IDENTIFIER is the first part of the item name (before the dash and version number) that is shown by --list.
-l, --list
List all available updates.
--reset-ignored
Clears the per-machine list of ignored updates.
--schedule on|off
Manages the per-machine automatic (background) check preference.

Examples

Update the system and all my tools

~/dev/maintain-macos.sh

Show all available software
softwareupdate --list
Install all recommended software
softwareupdate --install --recommended

References

  1. man 8 'softwareupdate'