Running common tasks through the command line cna reduce your maintenance workload, especially if you’re administering a number of Macs. Using a combination of system commands and open-source repositories, you can update the macOS software via the Terminal application.
Below are the steps on how to update the built-in macOS software using the softwareupdate command in Terminal.
STEP 1: Open your Applications folder, then go to Utilities.
STEP 2: Click on Terminal.
STEP 3: Type the command: softwareupdate -l then press [Enter].
NOTE: This will list all the macOS updates that are currently available from your system.
STEP 4: Wait for a moment while it searches the macOS servers for updates.
NOTE: If there are any updates available, softwareupdate will indicate which updates are available. Otherwise, you will be returned to the command prompt.
STEP 5: To install all available updates, type the command: sudo softwareupdate -ia –verbose then press [Enter].
STEP 6: Type in your password when prompted, then press [Enter].
NOTE: The update process will now start, displaying each program’s progress as it updates.
STEP 7: When the update process is finished, you will be returned to the command prompt.