Skip to content

Instantly share code, notes, and snippets.

@b0gdanw
Last active September 8, 2025 20:13
Show Gist options
  • Select an option

  • Save b0gdanw/26f528dda5abea7ce6fe633ca2ef1063 to your computer and use it in GitHub Desktop.

Select an option

Save b0gdanw/26f528dda5abea7ce6fe633ca2ef1063 to your computer and use it in GitHub Desktop.

Revisions

  1. b0gdanw revised this gist Mar 22, 2023. 1 changed file with 8 additions and 11 deletions.
    19 changes: 8 additions & 11 deletions Get-InstallAssistant-pkg-links-from-Apple.sh
    Original file line number Diff line number Diff line change
    @@ -1,22 +1,19 @@
    #!/bin/zsh
    #Get Big Sur and Monterey InstallAssistant.pkg links from Apple
    #For macOS 11 (Big Sur) and 12 (Monterey), Apple provides the Install macOS ___.app packaged as InstallAssistant.pkg
    #Get Big Sur, Monterey & Ventura InstallAssistant.pkg links from Apple
    #For macOS 11 (Big Sur), 12 (Monterey) and 13 (Ventura), Apple provides the Install macOS ___.app packaged as InstallAssistant.pkg
    #The links for the InstallAssistant packages are listed in the seed catalogs
    #The seed catalogs are listed in /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/SeedCatalogs.plist
    #The script gets the Public Release seed catalog link from SeedCatalogs.plist, then gets the macOS versions available from the Info.plist and prints the links for the corresponding InstallAssistant.pkg
    #Other seed catalogs:
    #Public Release Big Sur
    #link=$( plutil -p /System/Library/PrivateFrameworks/Seeding.framework/Resources/SeedCatalogs.plist | grep 'CustomerSeed' | sed -e s/'"CustomerSeed" => "'//g -e s/'.gz"'//g -e s/\ //g -e s/10.16customerseed-//g )
    #PublicSeed
    #The script gets the CustomerSeed seed catalog link from SeedCatalogs.plist, then gets the macOS versions available from the Info.plist and prints the links for the corresponding InstallAssistant.pkg
    #Other options
    #PublicSeed (Public Beta)
    #link=$( plutil -p /System/Library/PrivateFrameworks/Seeding.framework/Resources/SeedCatalogs.plist | grep 'PublicSeed' | sed -e s/'"PublicSeed" => "'//g -e s/'.gz"'//g -e s/\ //g )
    #DeveloperSeed
    #DeveloperSeed (Developer Beta)
    #link=$( plutil -p /System/Library/PrivateFrameworks/Seeding.framework/Resources/SeedCatalogs.plist | grep 'DeveloperSeed' | sed -e s/'"DeveloperSeed" => "'//g -e s/'.gz"'//g -e s/\ //g )

    #CustomerSeed

    link=$( plutil -p /System/Library/PrivateFrameworks/Seeding.framework/Resources/SeedCatalogs.plist | grep 'CustomerSeed' | sed -e s/'"CustomerSeed" => "'//g -e s/'.gz"'//g -e s/\ //g )

    for file in $(curl -# $link | grep Info.plist | grep -Evw '(Info.plist.integrityDataV1|InstallInfo.plist)' | sed -e s/"<string>"//g -e s/"<\/string>"//g -e s/\ //g)
    do
    for file in $(curl -# $link | grep Info.plist | grep -Evw '(Info.plist.integrityDataV1|InstallInfo.plist)' | sed -e s/"<string>"//g -e s/"<\/string>"//g -e s/\ //g); do
    curl -# $file | egrep -EA 1 '(>Build<|OSVersion)' | sed -e s/"<string>"//g -e s/"<\/string>"//g -e s/\ //g | sed -e s/"<key>"//g -e s/"<\/key>"//g -e s/\ //g
    echo $file | sed -e "s/Info.plist/InstallAssistant.pkg/g"
    done
  2. b0gdanw revised this gist Jan 13, 2022. 1 changed file with 11 additions and 2 deletions.
    13 changes: 11 additions & 2 deletions Get-InstallAssistant-pkg-links-from-Apple.sh
    Original file line number Diff line number Diff line change
    @@ -3,11 +3,20 @@
    #For macOS 11 (Big Sur) and 12 (Monterey), Apple provides the Install macOS ___.app packaged as InstallAssistant.pkg
    #The links for the InstallAssistant packages are listed in the seed catalogs
    #The seed catalogs are listed in /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/SeedCatalogs.plist
    #The script gets the CustomerSeed seed catalog link from SeedCatalogs.plist, then gets the macOS versions available from the Info.plist and prints the links for the corresponding InstallAssistant.pkg
    #The script gets the Public Release seed catalog link from SeedCatalogs.plist, then gets the macOS versions available from the Info.plist and prints the links for the corresponding InstallAssistant.pkg
    #Other seed catalogs:
    #Public Release Big Sur
    #link=$( plutil -p /System/Library/PrivateFrameworks/Seeding.framework/Resources/SeedCatalogs.plist | grep 'CustomerSeed' | sed -e s/'"CustomerSeed" => "'//g -e s/'.gz"'//g -e s/\ //g -e s/10.16customerseed-//g )
    #PublicSeed
    #link=$( plutil -p /System/Library/PrivateFrameworks/Seeding.framework/Resources/SeedCatalogs.plist | grep 'PublicSeed' | sed -e s/'"PublicSeed" => "'//g -e s/'.gz"'//g -e s/\ //g )
    #DeveloperSeed
    #link=$( plutil -p /System/Library/PrivateFrameworks/Seeding.framework/Resources/SeedCatalogs.plist | grep 'DeveloperSeed' | sed -e s/'"DeveloperSeed" => "'//g -e s/'.gz"'//g -e s/\ //g )

    #CustomerSeed
    link=$( plutil -p /System/Library/PrivateFrameworks/Seeding.framework/Resources/SeedCatalogs.plist | grep 'CustomerSeed' | sed -e s/'"CustomerSeed" => "'//g -e s/'.gz"'//g -e s/\ //g )

    for file in $(curl -# $link | grep Info.plist | grep -Evw '(Info.plist.integrityDataV1|InstallInfo.plist)' | sed -e s/"<string>"//g -e s/"<\/string>"//g -e s/\ //g); do
    for file in $(curl -# $link | grep Info.plist | grep -Evw '(Info.plist.integrityDataV1|InstallInfo.plist)' | sed -e s/"<string>"//g -e s/"<\/string>"//g -e s/\ //g)
    do
    curl -# $file | egrep -EA 1 '(>Build<|OSVersion)' | sed -e s/"<string>"//g -e s/"<\/string>"//g -e s/\ //g | sed -e s/"<key>"//g -e s/"<\/key>"//g -e s/\ //g
    echo $file | sed -e "s/Info.plist/InstallAssistant.pkg/g"
    done
  3. b0gdanw created this gist Jan 10, 2022.
    13 changes: 13 additions & 0 deletions Get-InstallAssistant-pkg-links-from-Apple.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    #!/bin/zsh
    #Get Big Sur and Monterey InstallAssistant.pkg links from Apple
    #For macOS 11 (Big Sur) and 12 (Monterey), Apple provides the Install macOS ___.app packaged as InstallAssistant.pkg
    #The links for the InstallAssistant packages are listed in the seed catalogs
    #The seed catalogs are listed in /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/SeedCatalogs.plist
    #The script gets the CustomerSeed seed catalog link from SeedCatalogs.plist, then gets the macOS versions available from the Info.plist and prints the links for the corresponding InstallAssistant.pkg

    link=$( plutil -p /System/Library/PrivateFrameworks/Seeding.framework/Resources/SeedCatalogs.plist | grep 'CustomerSeed' | sed -e s/'"CustomerSeed" => "'//g -e s/'.gz"'//g -e s/\ //g )

    for file in $(curl -# $link | grep Info.plist | grep -Evw '(Info.plist.integrityDataV1|InstallInfo.plist)' | sed -e s/"<string>"//g -e s/"<\/string>"//g -e s/\ //g); do
    curl -# $file | egrep -EA 1 '(>Build<|OSVersion)' | sed -e s/"<string>"//g -e s/"<\/string>"//g -e s/\ //g | sed -e s/"<key>"//g -e s/"<\/key>"//g -e s/\ //g
    echo $file | sed -e "s/Info.plist/InstallAssistant.pkg/g"
    done