snippetbashTip
pkgutil — Query and manipulate Mac OS X Installer packages and receipts. More information: <https://keith.gith
Viewed 0 times
commandinstallerandmanipulateclimacquerypkgutil
macos
Problem
How to use the
pkgutil command: Query and manipulate Mac OS X Installer packages and receipts. More information: <https://keith.github.io/xcode-man-pages/pkgutil.1.html>.Solution
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 --pkgsVerify 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}}Code Snippets
List package IDs for all installed packages
pkgutil --pkgsVerify 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}}Context
tldr-pages: osx/pkgutil
Revisions (0)
No revisions yet.