Forrest logo
back to the pacman tool

pacman-query:tldr:0f27c

pacman-query: List files owned by a package.
$ pacman --query --list ${package_name}
try on your machine

This command is used in the pacman package manager on Arch Linux to query and list information about a specific package.

Here's how each part of the command works:

  • pacman: The command itself that invokes the pacman package manager.
  • --query or -Q: A flag that tells pacman to perform a query operation.
  • --list or -l: Another flag that specifies the type of query to be performed, which in this case is listing the files owned by the package.
  • ${package_name}: This is a placeholder that should be replaced with the actual name of the package you want to query and list.

When you run this command with the actual package name, pacman will search its local package database and output a list of files and directories that are owned by the specified package. This can be useful for investigating the contents of a package or troubleshooting issues related to package installation.

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 pacman tool