Query and manipulate macOS Installer packages and receipts.

# To list package IDs for all installed packages:
pkgutil --pkgs

# To verify cryptographic signatures of a package file:
pkgutil --check-signature <path/to/filename.pkg>

# To list all the files for an installed package given its ID:
pkgutil --files <com.microsoft.Word>

# To extract the contents of a package file into a directory:
pkgutil  --expand-full <path/to/filename.pkg> <path/to/directory>