We can update macOS via the terminal using the softwareupdate command. This command allows you to check for, download, and install macOS updates. Here are the steps to update macOS using the terminal.
- Open Terminal App.
- Run the command to check for list of updates: softwareupdate -l
% softwareupdate -l Software Update found the following new or updated software: * Label: Command Line Tools for Xcode-15.3 Title: Command Line Tools for Xcode, Version: 15.3, Size: 707501KiB, Recommended: YES, * Label: Command Line Tools beta 2 for Xcode-16.0 Title: Command Line Tools beta 2 for Xcode, Version: 16.0, Size: 743581KiB, Recommended: YESAs you can see the above command checks for available updates and lists them.
- Install updates:
If you want to install all updates at once, use the below command,
% sudo softwareupdate -i -aIf you wish to install specific updates, then use the bellow option
sudo softwareupdate -i "NAME-OF-THE-UPDATE"Here the name of the update is the "Title" name you see in the list.
- Finally after installing you can reboot your Mac using the below command,
% sudo shutdown -r now
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!