Files
cheatsheet-tldr/tldr/osx/pkgutil
2025-10-10 00:19:31 +00:00

26 lines
645 B
Plaintext

---
syntax: markdown
tags: [tldr, osx]
source: https://github.com/tldr-pages/tldr.git
---
# pkgutil
> Query and manipulate Mac OS X Installer packages and receipts.
> More information: <https://keith.github.io/xcode-man-pages/pkgutil.1.html>.
- List package IDs for all installed packages:
`pkgutil --pkgs`
- Verify cryptographic signatures of a package file:
`pkgutil --check-signature {{path/to/file.pkg}}`
- List all the files for an installed package given its ID:
`pkgutil --files {{com.microsoft.Word}}`
- Extract the contents of a package file into a directory:
`pkgutil --expand-full {{path/to/file.pkg}} {{path/to/directory}}`