dnf5-leaves - Man Page

Leaves Command


dnf5 leaves


The leaves command in DNF5 is used to list all leaf packages. Leaf packages are installed packages that are not required as a dependency of another installed package. However, two or more installed packages might depend on each other in a dependency cycle. Packages in such cycles that are not required by any other installed package are also leaf. Packages in such cycles form a group of leaf packages.

Packages in the output list are sorted by group and the first package in the group is preceded by a - character.


Does not implement options. But it takes into account the install_weak_deps setting. If install_weak_deps is set to false, weak dependencies are ignored during the calculation of the set of leaf packages.

Why is This Useful?

The list gives you a nice overview of what is installed on your system without flooding you with anything required by the packages already shown. The following list of arguments basically says the same thing in different ways:


See AUTHORS.md in dnf5 source distribution.

Referenced By

dnf5(8), dnf5-repoquery(8).

Nov 24, 2023 dnf5