Posted on 08-20-2013 10:40 PM
I've written a script that changes the com.apple.softwareupdate.plist file to point to an internal SUS server which appears to work.
I then run a softwareupdate which runs, the logs are showing the correct output.
"
SoftwareUpdate Tool
Copyright 2002-2010 Apple
Done
"
What I don't understand is why it doesn't appear to be picking up the 2 updates that need to be applied.
I've tried sleeping for 30 seconds just in case the updates to the com.apple.softwareupdate.plist haven't taken affect with the same result.
I'd like the updates to be applied prior to the first reboot that way any update that needs the reboot can do it's thing before the rest of the imaging process completes.
Posted on 08-21-2013 06:28 AM
Couple questions:
Are they enabled on your SUS?
What command is being thrown into terminal? softwareupdate? softwareupdate -ia?
Posted on 08-21-2013 06:28 AM
Dang double post
Posted on 08-21-2013 07:55 AM
I suspect the "two updates" are part of the iLife suite (iMovie, iPhoto, GarageBand). On a new Mac, these are linked to the Mac App Store (MAS) and you have to sign in with an Apple ID to download the updates. There are ways of unlinking them from the MAS, see below for a discussion on this, or you can just let the user grab updates to these after they get the machine or have a company Apple ID to grab updates. The problem with this last approach is that they might need the username/password of the company Apple ID to grab future updates or you have to distribute updates yourself.
https://groups.google.com/forum/#!msg/macenterprise/C2a1cgc_Ogg/rJYq55aWvA0J
Posted on 08-21-2013 12:55 PM
they absolutely will need the name/password to grab updates. Curse you, Apple! What kills me is that even for free apps like Xcode you need the name/password to download updates too. It's really quite ridiculous.
Pretty much the only way I've found to is to de-AppStoreize® them:
sudo rm -r /Applications/iPhoto.app/Contents/_MASReceipt
to turn iPhoto into a normal, happy app again.
Posted on 08-21-2013 01:02 PM
For iLife, iPhoto in particular, remember to copy the framework files into the /Library/Frameworks.
For Xcode, you can download a non-MAS copy using a, free, developer account. Log in and download it from the "Additional Downloads" portion of the developer site. They also break out the command line tools.
https://developer.apple.com/downloads/index.action
Posted on 08-21-2013 03:01 PM
The command I'm running from the terminal is
"
softwareupdate -ir
"
I did some more testing after my initial post.
I've found that if I run this command before I restart the computer no updates are found. If I run it after a restart then I see the iTunes and 10.8.4 update's.
It would seem that the changes I'm making to /library/preferences/com.apple.softwareupdate.plist aren't taking affect until after a restart.