Ask Your Question
4

How to keep a specific older kernel after yum update ?

asked 2012-05-03 08:47:08 -0500

rohitsd gravatar image

updated 2012-05-03 13:44:34 -0500

FranciscoD_ gravatar image

After updating via yum/packagekit , yum removes older kernel and keeps latest 3 kernel versions. But I want a specific(which I like) kernel version to be retained by yum. Also I want yum to skip kernel updates. Is it possible to configure yum in above stated manner?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2012-05-03 10:18:06 -0500

ztank1013 gravatar image

updated 2012-05-04 06:51:52 -0500

Use the

installonly_limit=N

directive inside the /etc/yum.conf file. Replace N with the number of versions you would like to keep. By default it is equal to 3 (Fedora 16). If you set it to zero then you will disable this feature.

Then if you want to exclude only kernel update put the following directive always in /etc/yum.conf file

exclude=kernel*
edit flag offensive delete link more

Comments

Please note that preventing the kernel from being updated may result in bugs, some of which may be important security issues.

FranciscoD_ gravatar imageFranciscoD_ ( 2012-05-03 13:44:09 -0500 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2012-05-03 08:47:08 -0500

Seen: 4,894 times

Last updated: May 04 '12