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 eachname.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 eachname.arch. the "everyone who didn't make the podium" option, lowkey-k <N>,--keep <N>β set that package count N for--newand--old. default is1, 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 π
β Copyright β
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
- arch rolling: dnf5 5.4.6.0-2 Β· 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