Pin or retain a kernel version (or increase the number of kernels retained)

To retain, You can do it with the follow procedure:

https://discussion.fedoraproject.org/t/howto-how-can-i-exclude-selected-packages-when-i-run-dnf-update-command/69463

Also you can define the number and increase/decrease the number of kernel in your system, in the following way:

On Fedora this file is located in /etc/dnf/dnf.conf

installonly_limit=3

Regards.,

3 Likes