Which kind of dependencies (suggested, recommended…) does DNF install?

DNF’s man page talks about recommended and suggested packages (it actually calls them “capabilities”, but I believe these include packages).

Which of these packages are installed when pulling dependencies for a package with dnf install …?

Can I choose which kinds of dependencies are installed and which are not?

2 Likes

By default, dnf treats “weak dependencies” the same as normal requires/provides:

You can disable the installation of these “weak dependencies” by adding this to your /etc/dnf/dnf.conf file:

install_weak_deps=False

If you don’t want it to always be False, you can also supply it to individual commands, as documented in man dnf:

dnf install <package>  --setopt=install_weak_deps=False
6 Likes