[CentOS] Prevent a particular kernel from being deleted

Fri Jun 11 04:20:27 UTC 2021
Gordon Messmer <gordon.messmer at gmail.com>

On 6/4/21 9:31 PM, Frank Cox wrote:
> So is there a way to tell dnf to update kernels in the usual manner but always keep a certain installed version until otherwise instructed?

Not that I know of.  You could increase "installonly_limit" in dnf.conf 
to a large number, and remove kernels manually rather than 
automatically.  Or you could create a new empty dummy package that 
Requires: the kernel-version that you want to keep, and add that package 
to /etc/dnf/protected.d/.