Apple Software Update - Command Line

Command Line

All of Software Update's features are available through the command-line program softwareupdate. The command to update everything from terminal the command is "sudo softwareupdate -i -a" for other option are below.

The command line usage for softwareupdate in OS X 10.6 is as follows:

usage: softwareupdate -l | --list List all appropriate updates -d | --download Download Only -i | --install Install

Using this tool, it is fairly straightforward for lab administrators to automatically install incoming updates by adding a cron job, or using the new launchd scheduling system, the latter is recommended:
softwareupdate—install—all
(or just --recommended to be more cautious). It is prudent to set the job to run only every few days to allow for time to jump in with an --ignore if a particular update is reported to have issues by early adopters. If running as a cron job, it is also a good idea to avoid running the update while a user is logged in, especially since some updates require reboot to take effect. (softwareupdate does not reboot automatically, it merely displays a warning on its standard output if a reboot is necessary.) Remote administrators may also be interested in also using the cURL and installer command line utilities to set up their own software update system.

Read more about this topic:  Apple Software Update

Famous quotes containing the words command and/or line:

    Under bare Ben Bulben’s head
    In Drumcliff churchyard Yeats is laid.
    An ancestor was rector there
    Long years ago, a church stands near,
    By the road an ancient cross.
    No marble, no conventional phrase;
    On limestone quarried near the spot
    By his command these words are cut:
    Cast a cold eye
    On life, on death.
    Horseman pass by!
    William Butler Yeats (1865–1939)

    I fear I agree with your friend in not liking all sermons. Some of them, one has to confess, are rubbish: but then I release my attention from the preacher, and go ahead in any line of thought he may have started: and his after-eloquence acts as a kind of accompaniment—like music while one is reading poetry, which often, to me, adds to the effect.
    Lewis Carroll [Charles Lutwidge Dodgson] (1832–1898)