Query package information from Yum repositories.
dnf repoquery [<select-options>] [<query-options>] [<pkg-name>] dnf repoquery --querytags
repoquery searches the available Yum repositories for selected packages and displays the requested information about them. It is an equivalent of rpm -q for remote repositories.
Together with <pkg-name>, control what packages are displayed in the output. If <pkg-name> is given, the set of resulting packages is limited to the ones with a matching name (globbing supported), else all packages are considered.
Set what information is displayed about each package.
The following are mutually exclusive, i.e. at most one can be specified. If no query option is given, matching packages are displayed in the standard NEVRA notation.
Display NEVRAS of all available packages matching light*:
dnf repoquery 'light*'
Display requires of all ligttpd packages:
dnf repoquery --requires lighttpd
Display name, architecture and the containing repository of all lighttpd packages:
dnf repoquery --queryformat '%{name}.%{arch} : %{reponame}' lighttpd
Display all available packages providing “webserver”:
dnf repoquery --whatprovides webserver
Display all available packages providing “webserver” but only for “i686” architecture:
dnf repoquery --whatprovides webserver --arch i686