DNF4-REPOMANAGE(8)
π
DNF4-REPOMANAGE(8) β the dnf4-repomanage page, bestie edition
okay so this is dnf4-repomanage, aka the DNF repomanage Plugin, from the dnf-plugins-core squad. it manages a repository or a simple directory full of rpm packages. yes bestie, that's the whole vibe β¨
πΈ SYNOPSIS πΈ
dnf repomanage [<optional-options>] [<options>] <path>
π¦ DESCRIPTION π¦
so repomanage prints the newest or older packages in a repository β the one you point at with <path> β and it does it in a way that's literally built for piping into xargs or whatever similar program you're vibing with π«Ά
and here's the cute part: if <path> doesn't contain a valid repodata, it just goes looking for rpm packages instead and uses those. but if the repodata is there? then the repodata is the source of truth, periodt. it does not verify that they match the rpm packages actually present. honestly it can even run with just the repodata β no rpm packages needed at all π
quick heads up for modular packages: to work correctly,<path>has to contain repodata with modular metadata. if modular content is present,repomanageprints packages from the newest or older stream versions in addition to the newest or older non-modular packages. iykyk π
β¨ Options β¨
all the general DNF options are accepted, babe β check out Options in dnf(8) for the details.
the next options decide which packages get displayed. these ones are mutually exclusive, meaning only one at a time, no greedy behaviour π and if you specify none of them? the newest packages are shown. default slay.
--oldβ shows the older packages (for a package or a stream, that means all versions except the newest one).--oldonlyβ also shows older packages, same as--old, but it excludes the newest packages even when the newest one is included in the older stream versions. yeah, that distinction is real.--newβ shows the newest packages. main character energy π
and these ones control how the packages show up in the output:
-s,--spaceβ prints the resulting set separated by a space instead of a newline.-k <keep-number>,--keep <keep-number>β limits the resulting set to the newest<keep-number>packages.
π EXAMPLES π
display the newest packages in the current repository (directory):
dnf repomanage --new .
display the 2 newest versions of each package in the "home" directory:
dnf repomanage --new --keep 2 ~/
display the oldest packages separated by space in the current repository (directory):
dnf repomanage --old --space .
π AUTHOR π
see AUTHORS in your Core DNF Plugins distribution π
π COPYRIGHT π
2026, Red Hat, Licensed under GPLv2+ β iconic, protected, legally adorable.
and that's the whole page, bestie π§ this was version 4.7.0, dated Aug 10, 2026, and it lives in dnf-plugins-core. go pipe something into xargs for me, mwah π
π¦ where this page comes from
- centos-stream 10: dnf-plugins-core 4.7.0-12.el10 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms