Difference between revisions of "Pkgfile"

From ArchWiki
Jump to: navigation, search
(add installation instructions)
(add DISPLAYTITLE; minor rewording; added partial example 2. I will finish example 2 once my Linux box is back on)
Line 1: Line 1:
 +
{{DISPLAYTITLE:pkgfile}}
 
[[Category:Package development]]
 
[[Category:Package development]]
 
[[Category:Package management]]
 
[[Category:Package management]]
'''pkgfile''' is a tool that tells you which package owns a specific file.
+
'''pkgfile''' is a tool that tells you which package owns a specified file or which files a given package provides.
  
You can [[pacman|install]] it with {{pkg|pkgfile}} from the [[official repositories]] or with {{AUR|pkgfile-git}} from the [[Arch User Repository]].
+
You can [[pacman|install]] it with {{pkg|pkgfile}} from the [[Official Repositories|official repositories]] or with {{AUR|pkgfile-git}} from the [[Arch User Repository]].
  
After installing the package, you should update the filelist:
+
After installing the package, you should update the file list database as root:
 
  # pkgfile --update
 
  # pkgfile --update
  
 
Example:
 
Example:
 
  $ pkgfile makepkg    # Search for a package that contains a file named 'makepkg'.
 
  $ pkgfile makepkg    # Search for a package that contains a file named 'makepkg'.
  core/pacman          # Your searched file is in 'pacman' package in [core] repository.
+
  core/pacman          # Your searched file is in the 'pacman' package in the [core] repository.
 +
 
 +
Example 2:
 +
$ pkgfile core/pacman      # List all files provided by the 'pacman' package in the [core] repository.

Revision as of 13:15, 18 July 2012

pkgfile is a tool that tells you which package owns a specified file or which files a given package provides.

You can install it with pkgfile from the official repositories or with pkgfile-gitAUR from the Arch User Repository.

After installing the package, you should update the file list database as root:

# pkgfile --update

Example:

$ pkgfile makepkg     # Search for a package that contains a file named 'makepkg'.
core/pacman           # Your searched file is in the 'pacman' package in the [core] repository.

Example 2:

$ pkgfile core/pacman      # List all files provided by the 'pacman' package in the [core] repository.