Created
July 12, 2019 11:59
-
-
Save rtrouton/28748c8453d435f10e687d9f306c24a7 to your computer and use it in GitHub Desktop.
Checking MRT version from latest installed package receipt's package info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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