Skip to content

Instantly share code, notes, and snippets.

@rtrouton
Created July 12, 2019 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtrouton/28748c8453d435f10e687d9f306c24a7 to your computer and use it in GitHub Desktop.
Save rtrouton/28748c8453d435f10e687d9f306c24a7 to your computer and use it in GitHub Desktop.
Checking MRT version from latest installed package receipt's package info
pkgutil --pkg-info-plist $(printf "%s\n" $(pkgutil --pkgs=".*MRT.*") | sort -k1 | tail -1) | plutil -extract pkg-version xml1 - -o - | xmllint --xpath 'string(//plist/string)' -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment