[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 975
  • Last Modified:

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
0
mcdermk
Asked:
mcdermk
  • 2
  • 2
1 Solution
 
s3e3Commented:
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
 
mcdermkAuthor Commented:
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
 
s3e3Commented:
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
 
jimminy_ebayCommented:
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
 
jimminy_ebayCommented:
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now