pkgfile
Search Arch repositories for file ownership
TLDR
Synchronize pkgfile database
SYNOPSIS
pkgfile [--update] [--list] [--binaries] [--verbose] [--repo repo] target
DESCRIPTION
pkgfile searches for packages in the official Arch Linux repositories that contain a specific file. It maintains its own database of file-to-package mappings for fast lookups.
The tool is commonly used to find which package provides a missing command or file. It can also list all files a package contains, useful for understanding package contents before installation.
PARAMETERS
-u, --update
Synchronize pkgfile database-l, --list
List files in package-b, --binaries
Only search/list executables-i, --ignorecase
Case-insensitive matching-v, --verbose
Show package version-r, --repo _repo_
Search specific repository
CAVEATS
Database must be synchronized before use. Only searches official repositories, not AUR. Database updates require root privileges. Large database may take time to download initially.
HISTORY
pkgfile was created for Arch Linux to provide fast file-to-package lookups. It offers similar functionality to `pacman -F` but with a dedicated database optimized for this purpose.
