Forrest logo
back to the pkgutil tool

pkgutil:tldr:04233

pkgutil: List all the files for an installed package given its ID.
$ pkgutil --files ${com-microsoft-Word}
try on your machine

The command "pkgutil --files ${com-microsoft-Word}" is used to display a list of files installed by the Microsoft Word application on macOS.

Here's a breakdown of the command:

  • "pkgutil": It is a command-line utility on macOS used to work with package receipts, which are files that contain information about installed applications or packages.

  • "--files": This flag is used to specify that we want to list the files installed by the package.

  • "${com-microsoft-Word}": It represents the package identifier of the Microsoft Word application. Each application installed on macOS has a unique identifier, and in this case, it refers to Microsoft Word. The "${}" notation is used to reference the value of a variable. However, in this case, if the variable is not defined, it will be treated as a literal string "${com-microsoft-Word}".

When the command is executed, it will search for the package with the specified identifier and retrieve a list of files associated with it. This can be useful for troubleshooting, managing installed applications, or understanding the components of a package.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pkgutil tool