DNF5-REPOMANAGE(8)

πŸ’… DNF5-REPOMANAGE πŸ’…

okay so bestie, welcome to the dnf5-repomanage page β€” section 8 of the dnf5 manual, and honestly? it's a little sleeper hit. it's the Repomanage Command and it's about to make your repo cleanup so much easier, no cap.


✨ SYNOPSIS ✨

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

πŸ¦‹ DESCRIPTION πŸ¦‹

repomanage prints the newest or the older packages living in a repository that you point at with <path>, and the whole point is that it's easy to pipe into xargs or similar programs. like, it was literally designed for that. group-chat behavior fr fr.

here's the little plot twist though πŸ‘€ β€” if <path> doesn't contain repodata/repomd.xml, then it gets searched for rpm packages instead, and those get used in its place. and if the repodata are present, repomanage treats them as the source of truth β€” it does not verify that they actually match the rpm packages sitting there. none of that. and honestly? repomanage can run with just the repodata, no rpm packages needed at all. main character energy, it doesn't need anyone else.

and if <path> is a remote url, repomanage attempts to download the remote repodata into a temporary directory and use them. iconic. ✨


πŸŽ€ OPTIONS πŸŽ€

  • --new β€” print the N newest packages for each name.arch. this is the default btw, so if you do nothing, this is what you get πŸ’–
  • --old β€” print all packages except the N newest for each name.arch. the "everyone who didn't make the podium" option, lowkey
  • -k <N>, --keep <N> β€” set that package count N for --new and --old. default is 1, so keep that in mind 🫢
  • -s, --space β€” print packages separated by spaces instead of new lines. perfect for when you want them all on one line, iykyk

🌈 EXAMPLES 🌈

dnf repomanage --new .

display newest packages in current repository (directory). periodt. πŸŽ€

dnf repomanage --new --keep 2 ~/

display 2 newest versions of each package in "home" directory. two queens holding it down πŸ’…

dnf repomanage --old --space .

display all but the newest packages separated by space in current repository (directory). all the non-winners, one big happy space-separated line πŸ¦‹

dnf repomanage http://download.example/repo/

download the repository metadata into a temporary directory, load them and display the newest packages. remote slay πŸ”₯


πŸ‘‘ Author πŸ‘‘

see AUTHORS.md in dnf5 source distribution. the legends are listed there, go say hi πŸ’œ


contributors to the dnf5 project. that's the whole line, and it's giving teamwork 🌸


aaaand that's the page!! this little beauty was dated Oct 17, 2026 and it lives in the dnf5 source β€” so when you see that footer on a real terminal, that's the version/date combo right there, bestie 🫢✨ go forth and pipe responsibly πŸ’–

πŸ“¦ where this page comes from