pkgutil

Query and manipulate for macOS Installer packages and receipts

Subcommands

NameDescription
--packages, --pkgsList all installed package IDs on the specified --volume
--pkgs-plistList all installed package IDs, in Mac OS X plist(5) format, on the specified --volume
--filesList all of the files installed under the package-id
--export-plistPrint all receipt information about the specified package-id in Mac OS X plist(5) format
--verifyRun repair_packages(8) to verify the specified package-id
--repairRun repair_packages(8) to repair the specified package-id
--pkg-infoPrint extended information about the specified package-id
--pkg-info-plistPrint extended information about the specified package-id in Mac OS X plist(5) format
--forgetDiscard all receipt data about package-id, but don't touch installed files
--learnUpdate the ACLs of the given path in the receipt identified by --edit-pkg
--pkg-groupsList all of the package groups this package-id is a member of
--groupsList all of the package groups ont he specified --volume
--group-plistList all of the package groups ont he specified --volume in Mac OS X plist(5) format
--group-pkgsList all of the packages that are members of this group-id
--file-infoShow the metadata known about path
--file-info-plistShow the metadata known about path in Mac OS X plist(5) format
--expandExpand the flat package at pkg-path into a new directory specified by dir-path
--flattenFlatten the dir-path into a new flat package created at pkg-path
--bomExtract any BOM files from the flat pkg at path into /tmp and return the filename(s)
--payload-filesList the files archived within the uninstalled flat package(s) at path
--check-signatureCheck the validity and trust of the signature on the package at pkg-path

Options

NameDescription
-h, --helpA brief summary of commands and usage
-f, --forceSkip confirmation before a potentially destructive or ambiguous action
-v, --verboseOutput in a human-readable format
--volume <volume>Perform all operations on specified volume
--edit-pkg <package-id>Specifies an existing receipt to be modified in-place by --learn
--only-filesList only files (not directories) in --files listing
--only-dirsList only directories (not files) in --files listing
--regexpUse regex to match package-id arguments, if an exact match isn't found
--pkgs <REGEXP>List all installed package IDs, optionally matching kwarg REGEXP, on the specified --volume