The macOS softwareupdate
command is a powerful tool that allows you to interact with the system software update mechanism directly from the terminal. The main functions include listing available updates, downloading specific updates, and installing updates.
- macOS operating system.
- Administrator privileges for certain operations. Please note that most operations will require you to use
sudo
, however for demonstration purposes, the examples given here will not include it.
To use the softwareupdate
tool, open Terminal on your macOS and enter the softwareupdate
command followed by the desired command-line options.
Example: softwareupdate --list
This command will list all available updates for your system.
List all available updates.
Download and install specified updates. Args can be:
--recommended
: All updates that are recommended for your system.--os-only
: Only macOS updates.--safari-only
: Only Safari updates.--all
: All updates that are applicable to your system, including non-recommended ones.item...
: One or more specified updates.
List the available macOS installers.
Install the latest recommended macOS installer. Specify version with --full-installer-version
.
Install Rosetta. Only applies to Apple silicon Macs.
Download but not install specified updates.
Returns the per-machine automatic (background) check preference.
Print command usage.
softwareupdate --list
softwareupdate --install ProAppsQTCodecs-1.0
softwareupdate --install --recommended
softwareupdate --install --all
softwareupdate --install --os-only
softwareupdate --download ProAppsQTCodecs-1.0
softwareupdate --schedule
softwareupdate --list-full-installers
softwareupdate --fetch-full-installer
softwareupdate --fetch-full-installer --full-installer-version 10.15
softwareupdate --install-rosetta
If you encounter any issues while using the softwareupdate
command, ensure you have entered the command correctly. The command names and arguments are case-sensitive. Also, some operations require administrator privileges so ensure you are using sudo
where necessary.
Additionally, ensure your system is connected to the internet as the tool requires a connection to check and fetch updates from Apple's servers. If you are still experiencing issues, consider checking Apple's official documentation or community support forums for more information.