Fedora – How to use DNF to find out package versions available in a different release of Fedora

dnffedorarepository

Is it possible to use dnf (or another utility) to search repositories of different releases of Fedora?

For instance to search my current release for all versions of a package I can do dnf --showduplicates list <package name>. Is it possible to do something along the lines of:

dnf --showduplicates list [--fedora29] <package name>

Where the argument [--fedora29] can be used to specify the version of Fedora that I would like to search?

If this is not possible to do using dnf is there a different command line tool that I can use?

Best Answer

You can pass dnf a --releasever= argument to override the version.

For the particular command you gave as an example, use the following:

 dnf --releasever=29 --showduplicates list $pkgname
Related Question