[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 979
  • 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

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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