How to update your mac from the command line
System updates would usually be performed by going to the app store and clicking update. However, for whatever reason, my mac decided that it is going to take its time opening up the command lines and then waste a little more time deciding what needs updating. That’s why I choose to do this task via the command line.
Heres how to do it.
- Open your terminal application of choice (I use Iterm2)
- Type the following
sudo softwareupdate -ia
- Enter your password if prompted
It’s that easy. If you want to see what is available to update before you update, type the following.
No sudo required for this one. If you want to see what other handy commands are available for the software update tool, try the following:
There are some really great tricks with the command line. Most of them like this one, are really quick and easy to accomplish. What are some of your favourite command line tricks? Let us know in the comments.