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, repomanage prints 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 πŸ’–


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