PACKAGE-CLEANUP(1)
β¨ PACKAGE-CLEANUP(1) β¨
okay so bestie, welcome to package-cleanup from dnf-plugins-core β she's here to clean up your locally installed, duplicate, or orphaned packages π
fr fr though, quick lore drop: this is a DNF-based shim imitating the original YUM-based package-cleanup utility. so like, same energy, new engine π
πΈ SYNOPSIS πΈ
package-cleanup [options]
that's it, that's the whole vibe. options go in, packages get sorted β¨
π OPTIONS π
okay so first thing first: all general DNF options are accepted, see Options in dnf(8) for the details π (iykyk)
--leavesβ lists the leaf nodes in your local RPM database π leaf nodes are the RPMs that nothing else relies upon, like they're literally not needed by any other RPM. maps todnf repoquery --unneeded. main character energy, no dependents.--orphansβ lists installed packages that aren't available from any of your currently configured repositories π lil orphan babies, no repo to call home. maps todnf repoquery --extras.--problemsβ lists dependency problems chillin' in the local RPM database π maps todnf repoquery --unsatisfied. it's giving "we need to talk".--dupesβ scans for duplicates in the local RPM database π maps todnf repoquery --duplicates. just looking! not touching!--cleandupesβ scans for duplicates in the local RPM database and cleans out the older versions π₯π₯ maps todnf remove --duplicates. okay so heads up bestie, this one actually removes stuff β the older versions are gone-gone, periodt.
ngl, --cleandupes is the one that actually changes your system. the other four are just listing. know the difference π«Ά
π¦ EXAMPLES π¦
package-cleanup --problemsβ list all dependency problems πpackage-cleanup --orphansβ list all packages that are not in any DNF repository πΈpackage-cleanup --cleandupesβ remove all packages that have a duplicate installed β
π§ AUTHOR π§
see AUTHORS in your Core DNF Plugins distribution π
π COPYRIGHT π
2014, Red Hat, Licensed under GPLv2+ π
and that's the whole page bestie!! slay π
β¨ version 4.10.1, dated Mar 28, 2025 β go forth and let your package list breathe π¦π
π¦ where this page comes from
- opensuse-leap 16.0: yum-utils 4.10.1-bp160.1.7 Β· 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