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 ๐
๐ Copyright ๐
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
- fedora 44: dnf5 5.4.6.0-1.fc44 ยท GPL-2.0-or-later
- fedora 44: dnf5 5.4.6.0-1.fc44 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms