Making yum Not Update Kernel

By: Zhiqiang Ma In: Linux

We may not want to update kernel on a stable server while updating the application in the system. If we use “yum update”, we may install the new kernel. In this post, how to make yum not update kernel when updating system will be introduced.

The method is simple. Add this line to /etc/yum.conf

exclude=kernel*

“exclude” in /etc/yum.conf lists of packages to exclude from updates or installs. This  should  be a space separated list. Shell globs using wildcards (eg. * and ?) are allowed.

Author: Zhiqiang Ma Posted on: May 22, 2010 Views: 652
Tags: , , , ,
Like this post? Subscribe full-text feeds from all Fclose.com blogs:
One Response to Making yum Not Update Kernel | Add Comment
Add your comments, share your thoughts

Be nice. Keep it clean. Stay on topic. No spam.