Skip to content

Instantly share code, notes, and snippets.

@pookjw
Created October 5, 2017 02:50
Show Gist options
  • Save pookjw/eedf6db285094fb16e1676b416cbcd2b to your computer and use it in GitHub Desktop.
Save pookjw/eedf6db285094fb16e1676b416cbcd2b to your computer and use it in GitHub Desktop.
Get macOS combo installation package using script
#!/bin/sh
curl -o /tmp/assets.sucatalog.gz $(sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/seedutil current | grep CatalogURL | cut -d" " -f2) > /dev/null 2>&1
if [[ -f /tmp/assets.sucatalog.gz ]]; then rm /tmp/assets.sucatalog; fi
gunzip /tmp/assets.sucatalog.gz
echo $(cat /tmp/assets.sucatalog | grep macOSUpd$(sw_vers -productVersion).pkg | cut -d">" -f2 | cut -d"<" -f1)
@pookjw
Copy link
Author

pookjw commented Oct 5, 2017

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment