Difference between revisions of "Pkgfile"

From ArchWiki
Jump to: navigation, search
(new pkgfile; pkgtools don't provide this command anymore https://projects.archlinux.org/svntogit/community.git/commit/trunk?h=packages/pkgtools&id=d9d6972159ff72ecdb09624e2538a0feac17b298)
(add installation instructions)
Line 1: Line 1:
 
[[Category:Package development]]
 
[[Category:Package development]]
 
[[Category:Package management]]
 
[[Category:Package management]]
{{Ic|pkgfile}} is a tool that tells you which package owns a specific file.
+
'''pkgfile''' is a tool that tells you which package owns a specific file.
  
After installing the package, you should update the filelist first:
+
You can [[pacman|install]] it with {{pkg|pkgfile}} from the [[official repositories]] or with {{AUR|pkgfile-git}} from the [[Arch User Repository]].
 +
 
 +
After installing the package, you should update the filelist:
 
  # pkgfile --update
 
  # pkgfile --update
  

Revision as of 09:31, 18 July 2012

pkgfile is a tool that tells you which package owns a specific file.

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 filelist:

# pkgfile --update

Example:

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