I need to keep an old kernel in Fedora: kernel-4.14.18-300.fc27.x86_64
But I still want the latest kernel updates.
1) A naive approach is to change the installonly_limit=3
value to a high number in /etc/dnf/dnf.conf
.
2) A better solution was to use yumdb
to avoid automatic removing of the specific kernel:
yumdb set installonly keep kernel-4.14.18-300.fc27.x86_64
But the yum
package manager has been replaced with dnf
and there is no dnfdb
command...
I have tried adding the following line to /etc/dnf/dnf.conf
with no luck:
installonlypkgs=kernel-4.14.18-300.fc27.x86_64`
How to keep a specific version of an old kernel while still allowing updates?