pkgutil
Query and manipulate Mac OS X Installer packages and receipts. tldr-pages
On macOS
macOS
List package IDs for all installed packages
pkgutil --pkgsIdentifyVerify cryptographic signatures of a package file
pkgutil --check-signature path/to/file.pkgIdentifyList all the files for an installed package given its ID
pkgutil --files com.microsoft.WordIdentifyExtract the contents of a package file into a directory
pkgutil --expand-full path/to/file.pkg path/to/directoryIdentify