protected_packages
List of packages that DNF should never completely remove. They are protected via Obsoletes as well as user/plugin removals.
The default is:
dnf
,glob:/etc/yum/protected.d/*.conf
andglob:/etc/dnf/protected.d/*.conf
. So any packages which should be protected can do so by including a file in/etc/dnf/protected.d
with their package name in it.DNF will protect also the package corresponding to the running version of the kernel. See also protect_running_kernel option
1 Like