DNF5-LEAVES(8)

โœจ dnf5-leaves โœจ

okay so bestie, this is the dnf5-leaves page from the dnf5 manual (section 8, system administration commands, iykyk) ๐Ÿ’… and it's literally the cutest little command for figuring out what's actually chillin' on your system without being held hostage by dependencies. let's get into it ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

dnf5-leaves โ€” the Leaves Command. that's it, that's the name, and she ate ๐ŸŽ€


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

dnf5 leaves

no args, no chaos, just vibes โœจ


๐Ÿ‘‘ DESCRIPTION ๐Ÿ‘‘

so the leaves command in DNF5 exists to list all your leaf packages. and no, bestie, that's not a botany thing ๐ŸŒฟ

a leaf package is an installed package that is not required as a dependency of another installed package. she stands alone. main character energy fr fr ๐Ÿ‘‘

BUT ๐Ÿ’€ plot twist: two or more installed packages might depend on each other in a dependency cycle. and packages inside those cycles that aren't required by any other installed package? yeah, those are leaf packages too. so all the packages in a cycle like that form a group of leaf packages together ๐Ÿซ‚

and the output? the packages are sorted by group, and the very first package in each group gets a - character in front of it. so when you see that little dash, that's the group leader stepping out first ๐Ÿ’…


โœจ OPTIONS โœจ

ngl, this command does not implement options. like, zero. none. she doesn't do flags ๐ŸŽ€

BUT โ€” and this is the important part โ€” she does take into account the install_weak_deps setting. if install_weak_deps is set to false, then weak dependencies are ignored during the calculation of the set of leaf packages. so that setting is lowkey shaping your whole list, keep that in mind ๐Ÿง โœจ


๐Ÿ’– WHY IS THIS USEFUL? ๐Ÿ’–

because it gives you a nice overview of what's installed on your system without flooding you with everything that's already required by the packages you can see. it's the filtered, curated, aesthetic version of your package list ๐ŸŽ€

the following list of arguments basically says the same thing in different ways:

  • All the packages on this list is either needed by you, other users of the system or not needed at all โ€” because if it was required by another installed package, it would not be on the list. periodt.
  • if you want to uninstall anything from your system (without breaking dependencies), it must involve at least one package on this list. no cap ๐Ÿ”ฅ
  • if there is anything installed on the system which is not needed, it must be on this list โ€” otherwise it would be required as a dependency by another package. the math is mathing ๐Ÿงฎ
so basically: this list is your "safe to touch" zone if you're doing a little cleanup. anything not on it is holding hands with something else ๐Ÿค

๐ŸŒˆ Author ๐ŸŒˆ

See AUTHORS.md in the dnf5 source distribution. go give them their flowers ๐Ÿ’


Contributors to the dnf5 project. ๐Ÿ’œ


and that's the whole page bestie!! this came from the dnf5 manual, dated Sep 24, 2026 โ€” shoutout to the dnf5 girlies for keeping the docs iconic, mwah ๐Ÿ’…๐Ÿ’–โœจ

๐Ÿ“ฆ where this page comes from