Link to home
Start Free TrialLog in
Avatar of mcdermk
mcdermk

asked on

Apple Software Updates

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
Avatar of s3e3
s3e3
Flag of Canada image

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.
Avatar of mcdermk
mcdermk

ASKER

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.
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
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.
ASKER CERTIFIED SOLUTION
Avatar of jimminy_ebay
jimminy_ebay
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial