You’ve previously logged in to that machine with SSH, but the hackers have re-directed the IP address to another machine. Say, for example, someone has compromised one of the servers on your network. One reason this file is important is that it might prevent you from logging in to a different machine with the same IP address. Consider this file your personal SSH certificate authority. If you SSH into a machine for the first time, you will be asked if you want to save that hosts’ fingerprint. If not, you may be better off sticking with the default Mac App Store method as it keeps both your first and third party app updates all in one place.The SSH known_hosts file contains fingerprints (generated from the remote machines SSH key) of the known machines you’ve logged into.
So, if you only want to quickly install macOS system and first party updates, or if you don’t use any third party apps from the Mac App Store, the Terminal method has you covered.
Since the softwareupdate UNIX command also served as the basis of the original Software Update utility, this limitation makes sense. This utility, which is how Apple delivered system and first party updates to users prior to the launch of the Mac App Store, did not support third party applications. Longtime Mac users may recognize this limitation is the same as the original Mac Software Update utility. This is compared to the Mac App Store, which will update your third party apps alongside the official Apple updates. As mentioned at the beginning of this article, the Terminal method only works with macOS system updates and first party Apple apps like iTunes. The One Big Downside of Using Software Update via the Terminalĭespite its benefits for many users, there’s one big caveat of running the Mac Software Update via the Terminal. While not every update will see a significant speed increase, the Terminal method at least won’t add any time compared to the Mac App Store. While not universal, many users report that updates install faster when installed via Terminal, both in terms of the initial installation as well as the post-restart portion as the Mac reboots. Users with multiple Macs to manage can create scripts or remotely initiate a software update via a method such as SSH without needing to manually use screen sharing or remote management software.Īnother potential benefit is speed. One big reason is automation and remote management.
Now that you know how to run the Mac Software Update from the Terminal, the likely question is why you’d want to use this method instead of simply clicking a few buttons in the Mac App Store. You can do this via the normal macOS interface, but since we’re already using UNIX commands in Terminal, you can also type sudo shutdown -r now, which instructs shutdown command to restart the Mac (“-r”) immediately (“now”).īenefits of Using Software Update via the Terminal If you installed software updates that require a reboot, you’ll see a final message instructing you to restart your Mac.
There’s no traditional progress bar, but you will see updated text entries in the Terminal window as each step is completed, letting you know both when certain updates have been downloaded and when the entire installation process is complete.
Again, you’ll need to enter your admin password when prompted.
The “-a” switch simply instructs the command to install all updates.
As this is a superuser ( sudo) command, you’ll need to enter your admin account password when prompted.