You are the man, thank you. See, this is the new paradigm -
Step 1: A new version of Safari comes out
Step 2: I sit back for a couple days
Step 3: Then I come here and find out the link to get the package
Step 4: I download it and install on 6 labs of computers.
Is that the work flow Apple intended?
Joel, that's amazing. I can't believe your post received no "Likes" until I just gave you one.
I have to use Lion at work, and I just used your command-line magic to grab Safari 6.0.3 for Lion.
Thank you very much!
When I try running this on Mavericks it
tgerzen$ curl $(strings /System/Library/PrivateFrameworks/SoftwareUpdate.framework/SoftwareUpdate | grep http://swscan) | grep Safaricurl $(strings /System/Library/PrivateFrameworks/SoftwareUpdate.framework/SoftwareUpdate | grep http | grep sucatalog) | grep Safari | grep pkg
grep: https://swscan.apple.com/content/catalogs/others/index-10.9-mountainlion-lion-sn owleopard-leopard.merged-1.sucatalog: No such file or directory
curl: try 'curl --help' or 'curl --manual' for more information
just gives me that ⬆︎
Ah, looks like you truncated the "6" off the end of the first version my command line then appended the March 17th update!
Well forget all that anyway, now an even more updated command for prettier output (collaborating with Rixstep):
curl -s $(strings /System/Library/PrivateFrameworks/SoftwareUpdate.framework/SoftwareUpdate | grep http | grep sucatalog) | grep Safari | grep pkg | sed -e s/"<string>"//g -e s/"<\/string>"//g -e s/\ //g
Your results should look something like this, it includes Safari 5 and 6 links:
Ah, you are correct sir! Pulling apart the commands the first noticable thing is that 'strings' is now part of the developer tools in 10.9 and not part of the standard install so you have to install that when prompted and the other is that the one-liner script is really expcting one server and it appears there are two server, the regular one and one for seeds (at least on my system).
But even after doing all that it appears that Safari 7 (right now at least) is rolled into Mavericks and not a seperate download, I only found Safari 6 packages. So it seems if you want to reinstall Safari you have to download Mavericks from the App Store and reinstall the whole OS too!? Granted OS reinstalls are very good now, they don't trash any settings, but still seems like a crazy waste of bandwidth when you only want a package for Safari and have to download an OS!