Linux command
pkgfile 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Synchronize
sudo pkgfile --update
Example
pkgfile [filename]
List files
pkgfile --list [package]
Example
pkgfile --list --binaries [package]
Case-insensitive
pkgfile --ignorecase [filename]
Example
pkgfile --binaries [filename]
Example
pkgfile --verbose [filename]
Example
pkgfile --repo [core] [filename]
说明
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.
参数
- -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
- -g, --glob
- Enable shell-style glob pattern matching
- -r, --regex
- Enable regular expression matching
- -d, --directories
- Include directories in search results
- -q, --quiet
- Suppress error messages
- -0, --null
- Delimit output with null bytes
FAQ
What is the pkgfile command used for?
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.
How do I run a basic pkgfile example?
Run `sudo pkgfile --update` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -u, --update do in pkgfile?
Synchronize pkgfile database