Software Update via Unix command but get updates from my OS X server?

I have a OS X server which I use to manage how software update runs on the clients. Currently when you run software update from the client it connects to the server and downloads what it needs which is much faster than downloading it via the internet each time.

now, I would like to run a unix command via ARD that would run software update against the local server. Does anyone know the correct syntax for this? Running softwareupdate -l -a does not work. Thanks

iMac 20" Core Duo, Mac OS X (10.4.6)

Posted on Dec 18, 2007 2:17 PM

Reply
18 replies

May 22, 2008 1:32 PM in response to andyneiu

andyneiu wrote:
When you use the sudo command via ARD, you'll have to also put the administrator password on the second line. For example:

(line 1): sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://foo.bar.com:8088/
(line 2): password

The sudo command will be sent and when the target computer asks for the password, ARD will automatically send them the password on the second line.


This is actually not necessary in my experience. When issuing a Unix command via ARD, you have the option of changing the user the command is running under (Run command as:), using the little radio button called User. I use that and type in "root"
Note that the root user is not enabled on any of the Macs I manage. But issuing the command as "root" is equivalent to doing sudo, provided how you've connected to the client machines is as an admin user with full access to the Macs.

So in the command above I just use:
defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://foo.bar.com:8088/

Note the absence of sudo at the beginning of the command. But I run the command as root and no password is needed in a second line.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Software Update via Unix command but get updates from my OS X server?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.