Forrest logo
back to the pkgfile tool

pkgfile:tldr:320a4

pkgfile: Search for a package that owns a specific file, displaying the package version.
$ pkgfile --verbose ${filename}
try on your machine

The command "pkgfile --verbose ${filename}" is used to search for files owned by packages installed on a Linux system. Here's a breakdown of the different parts of the command:

  • "pkgfile" is the name of the command itself.
  • "--verbose" is an option or flag used to activate verbose mode, which provides additional detailed information while searching for the file.
  • "${filename}" is a placeholder for the actual name of the file you want to search for. You need to replace "${filename}" with the actual name of the file you are interested in searching for.

When you execute this command, it will search for the specified file within the packages installed on your Linux system and display detailed information about which package owns that file.

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