Linux command
pkginfo 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
pkginfo -i
Example
pkginfo -l [package]
Example
pkginfo -o [pattern]
Example
pkginfo -f [path/to/file]
说明
pkginfo queries the package database on CRUX Linux systems. It can list installed packages, show package contents, and determine which package owns specific files. The tool reads from the package database maintained by pkgadd and pkgrm, providing essential information for system administration and troubleshooting.
参数
- -i, --installed
- List all installed packages with versions
- -l, --list _package_
- List files owned by package
- -o, --owner _pattern_
- Find package(s) owning files matching pattern
- -f _file_
- Print the footprint of a package file
- -r, --root _path_
- Use alternate root directory
FAQ
What is the pkginfo command used for?
pkginfo queries the package database on CRUX Linux systems. It can list installed packages, show package contents, and determine which package owns specific files. The tool reads from the package database maintained by pkgadd and pkgrm, providing essential information for system administration and troubleshooting.
How do I run a basic pkginfo example?
Run `pkginfo -i` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i, --installed do in pkginfo?
List all installed packages with versions