rpmdistro-repoquery

Created 3 years ago
Maintained by ngompa
Tool to easily do repository queries for different distributions using DNF
Members 1

rpmdistro-repoquery

This tool utilizes DNF to let you query across several RPM-based Linux distributions.

Currently, the tool supports the following distributions:

  • Fedora
  • Mageia
  • openSUSE Leap
  • openSUSE Tumbleweed
  • CentOS (with EPEL)
  • CentOS Stream (with EPEL)

How to use it

Ensure that the dnf and distribution-gpg-keys packages are installed on your system.

Both are available in the following distributions:

  • Fedora
  • Mageia (since Mageia 6)
  • openSUSE Leap (since 15.0)
  • openSUSE Tumbleweed (since April 2018)
  • CentOS (since 7.6) with EPEL installed and enabled
$ ./rpmdistro-repoquery ./distros/<distro>.conf <releasever> [<repoquery options> ...] <pkg-or-file-path>

openSUSE specific notes

For a special case, openSUSE Tumbleweed would work as the following with repoquery:

$ ./rpmdistro-repoquery ./distros/opensuse-tumbleweed.conf 0 [<repoquery options> ...] <pkg-or-file-path>

This is because openSUSE Tumbleweed doesn't have a defined release ver, so you can put whatever value you want in the second position.

However, if you want to query various released snapshots for comparisons, you can:

$ ./rpmdistro-repoquery ./distros/opensuse-tumbleweed-snapshot.conf 20190423 [<repoquery options> ...] <pkg-or-file-path>

A list of available Tumbleweed snapshots to query is published by openSUSE.

Mageia specific notes

For Mageia, the configuration needs to be generated first:

$ ./rpmdistro-gendnfconf -d mageia -o distro.conf
$ ./rpmdistro-repoquery ./distro.conf 7 [<repoquery options> ...] <pkg-or-file-path>