Skip to content

Instantly share code, notes, and snippets.

@os-ia
Created April 12, 2022 07:25
Show Gist options
  • Save os-ia/00969e32c6e0e89a885c4b2eb47d9e75 to your computer and use it in GitHub Desktop.
Save os-ia/00969e32c6e0e89a885c4b2eb47d9e75 to your computer and use it in GitHub Desktop.
Get PKG details like identifier, version, install-location...
#!/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