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 to dnf 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 to dnf repoquery --extras.
  • --problems β€” lists dependency problems chillin' in the local RPM database πŸ’€ maps to dnf repoquery --unsatisfied. it's giving "we need to talk".
  • --dupes β€” scans for duplicates in the local RPM database πŸ™ˆ maps to dnf repoquery --duplicates. just looking! not touching!
  • --cleandupes β€” scans for duplicates in the local RPM database and cleans out the older versions πŸ”₯πŸ”₯ maps to dnf 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 πŸ’œ


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