Difference between revisions of "Pkgutil"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
* 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 ==

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

  • List of packages: pkgutil --packages or pkgutil --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

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.

Source: https://en.wikiversity.org/wiki/MacOS/pkgutil

Advertising: