Difference between revisions of "Pkgutil"
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <code>pkgutil</code> is a command line tool to query and manipulate | + | <code>pkgutil</code> is a command line tool to query and manipulate [[macOS]] installer [[packages]] and receipts. |
== Basic commands == | == Basic commands == | ||
− | * List of packages: <code>pkgutil --packages</code> or <code>pkgutil --pkgs</code> | + | * List of packages: <code>[[pkgutil --packages]]</code> or <code>pkgutil --pkgs</code> |
* List of files from a package: <code>pkgutil --files package_name</code> | * List of files from a package: <code>pkgutil --files package_name</code> | ||
* Package owner of a file: <code>pkgutil --file-info /usr/sbin/pkgutil</code> | * Package owner of a file: <code>pkgutil --file-info /usr/sbin/pkgutil</code> | ||
+ | * pkgutil --payload-files node-v10.15.3.pkg | ||
== See also == | == See also == | ||
− | * | + | * {{homebrew}} |
− | * <code>lsbom</code><ref>https://ss64.com/osx/lsbom.html</ref> List the contents of an installer's bom (bill of materials) file | + | * <code>[[lsbom]]</code><ref>https://ss64.com/osx/lsbom.html</ref> List the contents of an installer's bom (bill of materials) file |
Latest revision as of 13:20, 8 November 2021
pkgutil
is a command line tool to query and manipulate macOS installer packages and receipts.
Basic commands[edit]
- List of packages:
pkgutil --packages
orpkgutil --pkgs
- List of files from a package:
pkgutil --files package_name
- Package owner of a file:
pkgutil --file-info /usr/sbin/pkgutil
- pkgutil --payload-files node-v10.15.3.pkg
See also[edit]
- Homebrew,
brew
,pkgutil, /opt/homebrew/
,installation
lsbom
[1] List the contents of an installer's bom (bill of materials) file
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Advertising: