Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save b0gdanw/07e78df8c6be60c379a5f7816d1d353b to your computer and use it in GitHub Desktop.

Select an option

Save b0gdanw/07e78df8c6be60c379a5f7816d1d353b to your computer and use it in GitHub Desktop.
Get_Rosetta_links_from_Apple.txt
#Get Rosetta links for all macOS builds
curl -sfL "https://swscan.apple.com/content/catalogs/others/index-rosettaupdateauto-1.sucatalog" | plutil -p - | awk -F'"' '/"BuildVersion" =>/ {build=$4} /"URL" => ".*RosettaUpdateAuto[.]pkg"/ && build != "" {print build; print $4 ORS; build=""}'
#Get Rosetta for your macOS build
curl -sfL "https://swscan.apple.com/content/catalogs/others/index-rosettaupdateauto-1.sucatalog" | plutil -p - | awk -F'"' '/"BuildVersion" =>/ {build=$4} /"URL" => ".*RosettaUpdateAuto[.]pkg"/ && build != "" {print build; print $4 ORS; build=""}' | grep -A 1 "$(sw_vers -buildVersion)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment