Forrest logo
back to the pkgfile tool

pkgfile:tldr:2dd07

pkgfile: List all files provided by a package.
$ pkgfile --list ${package_name}
try on your machine

The command "pkgfile --list ${package_name}" is used in Linux systems to list the files contained within a package. Here is a breakdown of the command:

  • "pkgfile" is the name of the command-line tool used for package querying.
  • "--list" is an argument that specifies the action to be performed, which in this case is to list the files.
  • "${package_name}" is a placeholder that should be replaced with the actual name of the package you wish to query.

By executing this command and replacing "${package_name}" with the name of a package, you can obtain a list of files contained within that specific package. This is helpful for checking the contents of a package before installing or troubleshooting any issues related to the files residing within it.

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