DNF4-REPOMANAGE(8)

πŸ’– DNF4-REPOMANAGE(8) πŸ’–

okay so bestie, welcome to dnf4-repomanage β€” that's the DNF repomanage Plugin, living in section 8 of the manual (the dnf-plugins-core girlies, you know the ones). She has one job and she eats every time: managing a repository, or just a plain little directory full of rpm packages. πŸŽ€


✨ NAME ✨

dnf4-repomanage β€” the DNF repomanage Plugin.

Managing a repository, or a simple directory of rpm packages. Literally that's it, that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

dnf repomanage [<optional-options>] [<options>] <path>

πŸ¦‹ DESCRIPTION πŸ¦‹

so repomanage prints the newest β€” or the older β€” packages in a repository that you point at with <path>, and it does it in a way that's made for piping straight into xargs or whatever other program you're feeling that day. no cap. πŸ”₯

Now here's the plot twist: if <path> does not contain valid repodata, then it goes looking for rpm packages instead, and those get used. But if the repodata are there? Then repodata is the source of truth, periodt. It does <u>not</u> verify that the repodata actually match the rpm packages sitting right next to them. And honestly, queen behavior β€” repomanage can run with just the repodata, no rpm packages needed at all. πŸ’€

To work correctly with modular packages, <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. Don't skip this part bestie, it matters. ✨

πŸ‘‘ Options

All the general DNF options are accepted β€” go peek at Options in dnf(8) for the deets.

The following options set what packages get displayed. These are mutually exclusive, meaning only one can be specified at a time. And if you specify none of them? The newest packages are shown. Default slay. 🫢

  • --old β€” Show older packages (for a package or a stream, show all versions except the newest one).
  • --oldonly β€” Show older packages (same as --old, but exclude the newest packages even when it's included in the older stream versions).
  • --new β€” Show newest packages.

The following options control how packages get displayed in the output:

  • -s, --space β€” Print the resulting set separated by a space instead of a newline.
  • -k <keep-number>, --keep <keep-number> β€” Limit the resulting set to the newest <keep-number> packages.

🌈 EXAMPLES 🌈

Display newest packages in current repository (directory):

dnf repomanage --new .

Display 2 newest versions of each package in "home" directory:

dnf repomanage --new --keep 2 ~/

Display oldest packages separated by space in current repository (directory):

dnf repomanage --old --space .

πŸ’œ Author

See AUTHORS in your Core DNF Plugins distribution.

2014, Red Hat, Licensed under GPLv2+.


okay and that's the whole page fr fr πŸ’– this was dnf4-repomanage from dnf-plugins-core, version 4.10.1, dated Sep 27, 2025 β€” go forth and pipe responsibly, mwah πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from