Solved

Apple Software Updates

Posted on 2013-01-15
5
961 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
ID: 38778872
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
ID: 38778936
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
ID: 38780048
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
ID: 38780376
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
ID: 38780386
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Process to backup imac and reinstall OS 12 76
Auto CC in outlook for mac 2011 3 49
has anyone used Parallels Desktop 12 for Mac? is it working? 14 65
Thoughts on PC Doctor 11 47
The /etc/authorization file in Mac OS X 10.x can be used to control access to the various panes of the System Preferences amongst other things. It’s used by some of us Mac Sys Admin’s to give Standard Users access to System Prefs panes that only adm…
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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