Almost all operating system have command line commands. They are always there, even if we do not know about them.
Actually, the GUI programs that provide us ways to do things, like Disk Util for example, are just a graphical wrap over the command line tool. And they do not provide all the features.
Today, I will show you how to update your MacOS via command line. Benefits: you only need to restart once and the first phase of the installation can be done while you do your stuff so no need to wait for the progress bar to fill up and then reboot.
1. List available updates:
florians-MacBook-Pro:winshit.pvm florian$ softwareupdate -l Software Update Tool Finding available software Software Update found the following new or updated software: * macOS High Sierra 10.13.4 Developer Beta-4 macOS High Sierra 10.13.4 Public Beta (4), 2277556K [recommended] [restart]
Update the available entries (all):
florians-MacBook-Pro:winshit.pvm florian$ softwareupdate -i -a Software Update Tool Finding available software Downloading macOS High Sierra 10.13.4 Public Beta Downloaded macOS High Sierra 10.13.4 Public Beta Installing macOS High Sierra 10.13.4 Public Beta Done. You have installed one or more updates that requires that you restart your computer. Please restart immediately. To automate the restart process with softwareupdate(8), use --restart.