2.4. Excluding packages from DNF operations
You can configure DNF to exclude packages from any DNF operation by using the excludepkgs option.
You can define the excludepkgs option in the [main] or the repository section of the /etc/dnf/dnf.conf DNF configuration file.
참고
You can temporarily disable excluding the configured packages from an operation by using the --disableexcludes option.
Procedure
Exclude packages from the DNF operation by adding the following line to the
/etc/dnf/dnf.conffile:excludepkgs=<package_name_1>,<package_name_2> ...