DNF5-REPOMANAGE(8) dnf5 DNF5-REPOMANAGE(8)

dnf5-repomanage - Repomanage Command

dnf5 [GLOBAL OPTIONS] repomanage [OPTIONS] <path>

repomanage prints newest or older packages in a repository specified by <path> for easy piping to xargs or similar programs. In case <path> doesn't contain repodata/repomd.xml, it is searched for rpm packages which are then used instead. If the repodata are present, repomanage uses them as the source of truth, it doesn't verify that they match the present rpm packages. In fact, repomanage can run with just the repodata, no rpm packages are needed.

If <path> specifies remote url, repomanage attempts to download the remote repodata into a temporary directory and use them.

Print N newest packages for each name.arch (default).
Print all packages except the N newest for each name.arch
Set package count N for --new and --old (default: 1)
Print packages separated by spaces instead of new lines

Display newest packages in current repository (directory).
Display 2 newest versions of each package in "home" directory.
Display all but the newest packages separated by space in current repository (directory).
Download the repository metadata into a temporary directory, load them and display the newest packages.

See AUTHORS.md in dnf5 source distribution.

Contributors to the dnf5 project.

November 20, 2025