2020-01-21 07:17:11 -05:00
|
|
|
# pkgutil
|
|
|
|
|
|
|
|
> Query and manipulate Mac OS X Installer packages and receipts.
|
2024-01-31 07:20:27 -03:00
|
|
|
> More information: <https://keith.github.io/xcode-man-pages/pkgutil.1.html>.
|
2020-01-21 07:17:11 -05:00
|
|
|
|
|
|
|
- List package IDs for all installed packages:
|
|
|
|
|
|
|
|
`pkgutil --pkgs`
|
|
|
|
|
|
|
|
- Verify cryptographic signatures of a package file:
|
|
|
|
|
2020-08-09 19:26:40 -04:00
|
|
|
`pkgutil --check-signature {{path/to/filename.pkg}}`
|
2020-01-21 07:17:11 -05:00
|
|
|
|
|
|
|
- List all the files for an installed package given its ID:
|
|
|
|
|
|
|
|
`pkgutil --files {{com.microsoft.Word}}`
|
2020-08-09 19:26:40 -04:00
|
|
|
|
|
|
|
- Extract the contents of a package file into a directory:
|
|
|
|
|
2021-04-03 14:51:56 -04:00
|
|
|
`pkgutil --expand-full {{path/to/filename.pkg}} {{path/to/directory}}`
|