Mac OS X From The Command Line » Tutorials

Mac OS X From The Command Line » Tutorials Average ratng: 8,9/10 236 reviews
Mac os x from the command line tutorials free

In this project-based Mac OS X from the Command Line video tutorial series, you’ll quickly have relevant skills for real-world applications. Follow along with our expert instructor in this training course to get: Concise, informative and broadcast-quality Mac OS X from the Command Line. Blueprint 2.0.1 file. The Tutorial Shows You in Easy Steps How-to Quick-Start with the Console/Terminal Command-Line/Shell on Mac OS BSD/Unix. This is Just a ‘Quick and Dirty’ Introduction to the Command Line Basic Instructions on Mac Command Line Console Terminal. The Tutorial is Step-by-Step and You Can Just Getting-Started Following and Executing each Command without any Harm for Your System 🙂.

How do I install software updates from the command line tool on my Apple Mac OS X computer? How can I remotely update my Apple computer by just sshing into a system? Is there is something like apt-get command or yum command for Apple OS X?
You need to use the softwareupdate command to checks for new and updated versions of your software based on information about your Apple Mac computer and current software. This command requires admin authentication for all commands i.e. you need to run it using sudo tool. In this tutorial you will learn how to install software updates from the bash command line on a Mac OS X.
Advertisements

How do I find all available updates?

Open the terminal app and type the following commands. Type the following command:
softwareupdate -l
OR
softwareupdate --list
Sample outputs:
From the above update we get a list as follows:

Where,

  1. RAWCameraUpdate6.17-6.17 is software available to update also know as the identifier.
  2. 6.17 is version number
  3. 7455k download size
  4. Please note that updates that need a restart are marked with [restart].

How do I install specified update?

To install update called ‘RAWCameraUpdate6.17-6.17’, enter:
sudo softwareupdate -i RAWCameraUpdate6.17-6.17
Sample outputs:

A note about dealing with update names with white spaces

Some update names may include spaces, enclose the update name using a single quote character as follows:
sudo softwareupdate -i 'OS X El Capitan Update-10.11.1'

How do I see software download and update progress?

Pass the -v option as follows:
sudo softwareupdate -vi RAWCameraUpdate6.17-6.17
OR
sudo softwareupdate -v -i iTunesXPatch-12.3.1
Sample outputs:

Line

How do I just download update but not install on my system?

Use the following syntax:
sudo softwareupdate -d nameHere
sudo softwareupdate -d iTunesXPatch-12.3.1

To cancel a download, enter:
sudo softwareupdate -e

Os X Command Line

How do I apply all recommended updates?

All updates that are recommended for your system:
sudo softwareupdate -r
To install all updates that are applicable to your system, enter:
sudo softwareupdate -i -a
Install all but make sure you ignore ‘JavaForOSX’ updates:
sudo softwareupdate --ignore JavaForOSX
To clear the list ignored updates, enter:
sudo softwareupdate --reset-ignored

Turn on or off automatic background check

Automatic check is on
sudo softwareupdate --schedule on
Automatic check is off
sudo softwareupdate --schedule off
To see info on all options, type:
man softwareupdate
softwareupdate -h

Sample outputs:

Mac Os Command Line Commands

ADVERTISEMENTS