Services and User Management

A systems administrator manages a RHEL server where a vendor driver only works with the currently running kernel. The administrator needs every future dnf update to skip all kernel packages. Which line should be added to the [main] section of /etc/dnf/dnf.conf?

Show the answer

Correct answerA. exclude=kernel*

The exclude directive in [main] removes the matching packages from all dnf transactions, so kernel updates are skipped. protected_packages only stops listed packages from being removed; it does not stop them being upgraded.