Disabling Updates for Particular Packages
To disable updates for specific packages, add an
exclude
statement to the [main]
section of the /etc/dnf/dnf.conf
file. See Configuring the Global DNF Configuration Settings. For example, to exclude updates for VirtualBox
and kernel
: exclude=VirtualBox-7.? kernel*
Note:
Excluding certain packages from being updated can cause dependency errors for other packages. A system could also become vulnerable to security-related issues if you don't install the latest updates.