Forrest logo
back to the pkgfile tool

pkgfile:tldr:7a515

pkgfile: List only files provided by a package located within the `bin` or `sbin` directory.
$ pkgfile --list --binaries ${package_name}
try on your machine

The command "pkgfile --list --binaries ${package_name}" is used to list the files that are provided by a specific package. Here is what each part of the command does:

  • "pkgfile" is the name of the command-line tool that is being executed.
  • "--list" is an option for the "pkgfile" command that instructs it to output a list of files.
  • "--binaries" is another option for the "pkgfile" command that specifies to list only the binary files (i.e., executable files) provided by the package.
  • "${package_name}" is a placeholder for the actual name of the package you want to list the files of. You should replace this with the name of the package you are interested in.

Overall, this command helps you get a list of binary files that belong to a specific package, which can be useful when you want to know what executables or binaries a package provides.

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