How to Run Mac Software Update via the Terminal

I just want to update my machine

  1. softwareupdate -l — provide a list of all available updates along with their individual file sizes and a note indicating whether you’ll need to restart your Mac to complete the update process
  2. sudo softwareupdate -i name — ‘name’ is the exact name of one of the available updates revealed by the list command
  3. sudo softwareupdate -i -a — install all updates

No more fail update!