Created
April 12, 2022 07:25
-
-
Save os-ia/00969e32c6e0e89a885c4b2eb47d9e75 to your computer and use it in GitHub Desktop.
Get PKG details like identifier, version, install-location...
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
#!/usr/bin/env bash | |
pkgutil --expand $1 /tmp/pkg; cat /tmp/pkg/PackageInfo | grep "version=" ; rm -rf /tmp/pkg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment