pkgutil
Query and manipulate for macOS Installer packages and receipts
Subcommands
Name | Description |
---|---|
--packages, --pkgs | List all installed package IDs on the specified --volume |
--pkgs-plist | List all installed package IDs, in Mac OS X plist(5) format, on the specified --volume |
--files | List all of the files installed under the package-id |
--export-plist | Print all receipt information about the specified package-id in Mac OS X plist(5) format |
--verify | Run repair_packages(8) to verify the specified package-id |
--repair | Run repair_packages(8) to repair the specified package-id |
--pkg-info | Print extended information about the specified package-id |
--pkg-info-plist | Print extended information about the specified package-id in Mac OS X plist(5) format |
--forget | Discard all receipt data about package-id, but don't touch installed files |
--learn | Update the ACLs of the given path in the receipt identified by --edit-pkg |
--pkg-groups | List all of the package groups this package-id is a member of |
--groups | List all of the package groups ont he specified --volume |
--group-plist | List all of the package groups ont he specified --volume in Mac OS X plist(5) format |
--group-pkgs | List all of the packages that are members of this group-id |
--file-info | Show the metadata known about path |
--file-info-plist | Show the metadata known about path in Mac OS X plist(5) format |
--expand | Expand the flat package at pkg-path into a new directory specified by dir-path |
--flatten | Flatten the dir-path into a new flat package created at pkg-path |
--bom | Extract any BOM files from the flat pkg at path into /tmp and return the filename(s) |
--payload-files | List the files archived within the uninstalled flat package(s) at path |
--check-signature | Check the validity and trust of the signature on the package at pkg-path |
Options
Name | Description |
---|---|
-h, --help | A brief summary of commands and usage |
-f, --force | Skip confirmation before a potentially destructive or ambiguous action |
-v, --verbose | Output 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-files | List only files (not directories) in --files listing |
--only-dirs | List only directories (not files) in --files listing |
--regexp | Use 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 |