Forrest logo
back to the pkgfile tool

pkgfile:tldr:fa61b

pkgfile: Search for a package that owns a specific file in the `bin` or `sbin` directory.
$ pkgfile --binaries ${filename}
try on your machine

The command "pkgfile --binaries ${filename}" is used to search for the package that provides a given binary file in a Linux distribution. Here's an explanation of each component of the command:

  • "pkgfile" is the name of the command utility used to search for packages that contain specific files.
  • "--binaries" is an option passed to the "pkgfile" command, indicating that it should search for binary files or executables.
  • "${filename}" is a placeholder variable that should be replaced with the actual name of the binary file you want to search for.

So when you run this command, it will search for the package that contains the specified binary file (${filename}) and provide information about the package that provides that file, such as its name, version, and repository from which it can be installed.

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