tldr/pages/osx/pkgutil.md

21 lines
542 B
Markdown
Raw Normal View History

2020-01-21 12:17:11 +00:00
# pkgutil
> Query and manipulate Mac OS X Installer packages and receipts.
2022-02-14 11:21:43 +00:00
> More information: <https://ss64.com/osx/pkgutil.html>.
2020-01-21 12:17:11 +00:00
- List package IDs for all installed packages:
`pkgutil --pkgs`
- Verify cryptographic signatures of a package file:
2020-08-10 00:26:40 +01:00
`pkgutil --check-signature {{path/to/filename.pkg}}`
2020-01-21 12:17:11 +00:00
- List all the files for an installed package given its ID:
`pkgutil --files {{com.microsoft.Word}}`
2020-08-10 00:26:40 +01:00
- Extract the contents of a package file into a directory:
`pkgutil --expand-full {{path/to/filename.pkg}} {{path/to/directory}}`