Skip to main content

Run Mac OS X updates via Terminal

To run this command line, first open up Terminal from Applications > Utilities. Within Terminal type the following:

sudo softwareupdate -i -v -a

This script will run and do the following: First it will invoke the software update tool, it will then install any available updates using the -i modifier, it will also install all of them using the -a modifier. Finally the -v modifier will tell you what is happening. In short, look, download, install.

If you want to use this tool but you don’t want to install anything. You can let the tool list any downloads available to you. To do this type the following:

sudo softwareupdate -l

The, -l, modifier will list any updates. It may take a while for anything to appear, its best to let it run. You will get something similar to the image below if any updates are available.

A simple and useful command, that is quite interesting. If you want more information on this tool, type the following into Terminal.

man softwareupdate

Comments

Anonymous said…
interesting but not appealing ...

Popular posts from this blog

Welcome the new macOS - Mojave

Apple has released 3rd Beta verion of their macOS Mojave, so we thought to give it a try. What we found is that the product is really promising. They have improved many things that we never realized is actually a need.  Instead of writing what we loved, we prefered to collect posts that include all new features. If anyone needs Mojave Beta release, please send an email to:  Laeeq.Humam@hcl.com , we would be glad to share it.    List of new features: https://gizmodo.com/all-the-new-features-coming-in-macos-10-14-mojave-upda-1826531489 https://appleinsider.com/articles/18/06/09/90-new-changes-features-in-macos-mojave https://fieldguide.gizmodo.com/10-useful-new-features-hidden-in-the-macos-mojave-beta-1826603113

BREAKING THE CHAIN

Fixing Keychain issues What is Keychain & how it works? The Keychain consolidates various p asswords and passphrases in one place and makes them accessible through a master password or passphrase . When an application (including the Finder ) needs to access a pass word stored in the Keychain , the application asks you to unlock the Keychain if it is not already open. However there are certain settings in Keychain application which, wh en done, system will not prompt you for password & l og you in straight away. Keychain Access & Keychain Minder These are two contributors to Keychain , of which Keychain Access being the main controlling system and Keychain Minder is used just to change the Keychain master password, specially in the case when you don't remember the old one. Changing the password with Keychain Access Go to Applications (Command+Shift+A) and Open Utilities. Locate Keychain Access & open it. Click on Edit and select Change Password for

How to get current loggedin user on Mac via script

I won't waste time wiring details. This works as of today, but what will Apple do in future, only God knows.  🤓  It's always suggested to run the command without variable to ensure it work, but you probably know that.  CurrUser=$(echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ && ! /loginwindow/ { print $3 }')