Solved

Apple Software Updates

Posted on 2013-01-15
5
956 Views
Last Modified: 2013-01-20
Looking for a way to download and install required software updates via Apple Remote Desktop using a Unix Command.  I have no experience with Unix or scripting so any advice would be appreciated.

Thanks,
K
0
Comment
Question by:mcdermk
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:s3e3
Comment Utility
Here is the command from a terminal window.

sudo softwareupdate -i -a

To run this remotely you will have to enable SSH and remote console into the PC.
Alternatively use the remote desktop feature and run the updates via GUI.

Hope that helps.
0
 

Author Comment

by:mcdermk
Comment Utility
I tried that command unsuccessfully. I get the following error: sudo: no tty present and no askpass program specified.  I thought that this installed all updates.
0
 
LVL 8

Expert Comment

by:s3e3
Comment Utility
What happens when you enter :

sudo softwareupdate

You should see the usage output like this:

usage: softwareupdate <mode> [<args> ...]

      -l | --list            List all appropriate updates
      -d | --download            Download Only
      -i | --install            Install
            <label> ...      specific updates
            -a | --all            all appropriate updates
            -r | --recommended      only recommended updates

      --ignore <label> ...      Ignore specific updates
      --reset-ignored            Clear all ignored updates
      --schedule (on | off)      Set automatic checking

      -v | --verbose      Enable verbose output
      -h | --help      Print this help


Please also try:

sudo softwareupdate --install --all

This just worked for me and I am using 10.7
0
 
LVL 3

Expert Comment

by:jimminy_ebay
Comment Utility
with ARD send it as root.  You do not need to sudo a unix command in ARD as long as you are authenticated int eh ARD database as an admin user for this computer.
0
 
LVL 3

Accepted Solution

by:
jimminy_ebay earned 500 total points
Comment Utility
this command should work for you with apple remote desktop send unix command as root.  This is one of the unix presets builtin in the Misc templates.

softwareupdate -i -a
installs all updates

softwareupdate -i -a
installs required updates.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Syslogd is a utility that traps and logs messages sent by running processes. It is configured with the syslog.conf file, which consists of lines containing a pair of fields: "the selector field which specifies the types of messages and priorities to…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now