Software Update through UNIX command

Hey all,

Just a quick question regarding Software Update through Remote Desktop.

I'm running the UNIX command softwareupdate -i -a but it hang. I'm guessing it's due to our proxy, and that we have to login to the proxy server in order for the system to continue fetching the updates.

Basically, what I'm asking is if there is a way to bypass this, i.e. a command to follow the systemupdate -i -a command which will log me into the proxy?

Cheers,

Nick

Mac OS X (10.6.6)

Posted on Jan 25, 2011 4:36 AM

Reply
8 replies

Jan 25, 2011 2:32 PM in response to Antonio Rocco

What I did was create a UNIX task in ARD call "Software Update from Local SUS" with the following command for all the computers I want to update from our local SUS:

defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://ip.address.of.server:8088/
softwareupdate -i -a

Just replace ip.address.of.server with your server's IP address or FQDN and run the task from ARD. Works great for us.

Feb 4, 2011 4:23 AM in response to B Man

Hi.

I tried the command:

defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://ip.address.of.server:8088/
softwareupdate -i -a

but all I get back is this:

2011-02-04 12:16:14.482 defaults[874]
Rep argument is not a dictionary
Defaults have not been changed.
/bin/bash: line 2: http://xx.xxx.xx.xxx:8088: No such file or directory
Software Update Tool

Thanks for your help so far. Much appreciated.

Feb 7, 2011 5:03 AM in response to Antonio Rocco

Thanks for that Antonio,

But it still doesn't seem to be doing the trick.

I looked at your previous post about the networksetup command but to put it bluntly, I'm a total newbie when it comes to OS X Networks at the moment and I'm still learning new things everyday.

I looked at the networksetup command and it sent me back errors basically saying I'm rubbish and I'm doing it wrong lol.

I'd really like to get all the computers to update automatically as we have 30+ Macs and it's a real pain updating them all manually.

Thank you so far for all you're help. Much appreciated.

Nick

Feb 8, 2011 1:19 AM in response to Antonio Rocco

I have Software Update enabled on the server. The server is running 10.5.8 (not sure if I mentioned the earlier).

I opened WGM and selected a group of computers I have managed running 10.4, and entered the address: * http://su.domain_name.com:8088/index.sucatalog*; but with my server ip replacing the "domain_name.com" (again I was unsure about this).

Am I going the right way about it all? I didn't get any errors, but again I'm not sure If I did it right...

Thanks very much,

Nick

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 through UNIX command

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