Ask Your Question

How to tell yum to keep an old kernel when updating the kernel?

asked 2013-12-22 05:20:24 -0500

remjg gravatar image

updated 2013-12-22 05:59:51 -0500


I'm running into some issues with newer 3.12 kernels in Fedora 20 whereas everything is working fine with the older 3.11 kernels.

By default, Fedora seems to only keep 3 kernels. This is a great feature but I want the following kernel not to be removed: kernel-3.11.10-301.fc20

How can I force yum to keep an installed kernel and still be able to update in order to test new ones?

edit retag flag offensive close merge delete


My question was very similar to question 10317. The only difference is that I don't want to skip kernel updates.

remjg gravatar imageremjg ( 2013-12-22 06:06:07 -0500 )edit

You can also change the install_only limit in /etc/yum.conf

hmaarrfk gravatar imagehmaarrfk ( 2013-12-22 18:41:50 -0500 )edit

Sure but I need to choose a very high number to be sure the kernel I want to keep will never be removed.

remjg gravatar imageremjg ( 2013-12-23 03:06:35 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-12-22 05:56:42 -0500

remjg gravatar image

updated 2014-10-28 08:28:33 -0500

I found my answer here. I need to type the following command as a superuser to avoid automatic removing of the specific package kernel-3.11.10-301.fc20:

yumdb set installonly keep kernel-3.11.10-301.fc20

If I update the system after, I still get new kernel versions. Automatic removing of new kernels also still works using the installonly_limit value found in /etc/yum.conf.

If I want to revert the previous change, I can use this command:

yumdb del installonly kernel-3.11.10-301.fc20
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-12-22 05:20:24 -0500

Seen: 5,751 times

Last updated: Oct 28 '14