Linux command
dnf-repoquery 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
dnf repoquery --deplist [package]
说明
dnf repoquery is a powerful query tool that searches both local installed packages and remote repository metadata without requiring installation. It provides detailed package information including dependencies, file lists, capabilities, and relationships between packages. Unlike simple package listing commands, repoquery allows complex queries: finding which package provides a specific file or capability, showing all dependencies for a package, or listing all files within a package. The --whatprovides option is particularly useful for finding which package contains a missing library or command. Output formatting is highly customizable with --queryformat, making it suitable for scripting and automation. The tool doesn't require root privileges and can query repository packages without downloading them.
参数
- --deplist
- Show dependencies
- --provides
- Show what package provides
- --requires
- Show requirements
- --whatprovides _file_
- Find package providing file
- --installed
- Query installed packages only
- --available
- Query available packages only
- -l, --list
- List files in package
FAQ
What is the dnf-repoquery command used for?
dnf repoquery is a powerful query tool that searches both local installed packages and remote repository metadata without requiring installation. It provides detailed package information including dependencies, file lists, capabilities, and relationships between packages. Unlike simple package listing commands, repoquery allows complex queries: finding which package provides a specific file or capability, showing all dependencies for a package, or listing all files within a package. The --whatprovides option is particularly useful for finding which package contains a missing library or command. Output formatting is highly customizable with --queryformat, making it suitable for scripting and automation. The tool doesn't require root privileges and can query repository packages without downloading them.
How do I run a basic dnf-repoquery example?
Run `dnf repoquery --deplist [package]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --deplist do in dnf-repoquery?
Show dependencies