Pkgfile: Difference between revisions
(add Category:Commands) |
m (Added interlanguage link to French translation) |
||
(9 intermediate revisions by 7 users not shown) | |||
Line 3: | Line 3: | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[cs:Pkgfile]] | [[cs:Pkgfile]] | ||
[[de:Pkgfile]] | |||
[[es:Pkgfile]] | [[es:Pkgfile]] | ||
[[ | [[fr:Pkgfile]] | ||
[[it:Pkgfile]] | |||
[[ja:Pkgfile]] | [[ja:Pkgfile]] | ||
[[ | [[pl:Pkgfile]] | ||
[[pt:Pkgfile]] | [[pt:Pkgfile]] | ||
[[ru:Pkgfile]] | [[ru:Pkgfile]] | ||
Line 47: | Line 49: | ||
== Command not found == | == Command not found == | ||
See [[Bash#Command not found]], [[Zsh# | See [[Bash#Command not found]], [[Zsh#pkgfile "command not found" handler]] and [[Fish#The "command not found" hook]]. | ||
== Automatic updates == | == Automatic updates == |
Latest revision as of 15:31, 24 March 2024
pkgfile is a tool for searching files from packages in the official repositories.
Installation
Install the pkgfile package. Alternatively, install the development version with the pkgfile-gitAUR package.
The pkgfile database can then be synced with:
# pkgfile -u
Usage
To search for a package that owns the file makepkg
:
$ pkgfile makepkg
core/pacman
To list all files provided by archlinux-keyring:
$ pkgfile -l archlinux-keyring
core/archlinux-keyring usr/ core/archlinux-keyring usr/share/ core/archlinux-keyring usr/share/pacman/ core/archlinux-keyring usr/share/pacman/keyrings/ core/archlinux-keyring usr/share/pacman/keyrings/archlinux-revoked core/archlinux-keyring usr/share/pacman/keyrings/archlinux-trusted core/archlinux-keyring usr/share/pacman/keyrings/archlinux.gpg
Latter is comparable to pacman -Ql
(see pacman#Querying package databases), except it applies to remote packages.
Command not found
See Bash#Command not found, Zsh#pkgfile "command not found" handler and Fish#The "command not found" hook.
Automatic updates
pkgfile ships with a systemd service and timer for automatically synchronizing the pkgfile database. To activate automatic updates enable pkgfile-update.timer
.
By default, pkgfile will be updated daily. To change this schedule, edit the unit file.