Q

Using YUM to upgrade a system around the kernel

Excluding the Linux kernel in a YUM upgrade can be done. Learn how from our expert, who also tells you why it might not be the best idea.

I am running Fedora Core 6 with the 2.6.22.9-61 kernel. I added the truecrypt module to my system, but every time the kernel gets upgraded, the module is lost. Can I use YUM (Yellow dog Updater, Modified) to upgrade an entire system with the exception of the kernel? Is there any danger to not updating the kernel?

You can exclude software from YUM upgrade in two ways, via the command line and via configuration file. Firstly, via command line use the --exclude option like so:


# yum --exclude kernel

You can also use the exclude option in the yum.conf configuration file, usually located in /etc. Add each package you want excluded to the option in the [main] section.


[main] exclude=hal autofs kernel*

The danger of not updating the kernel is two-fold. You risk missing out on functionality, security updates or both. If there are kernel features or fixes in the version you are excluding, then you can miss out on them. Additionally, if there are security fixes in the new kernel, you will also not get those. I recommend reviewing the release notes for each kernel version and determine if any of the features, fixes or security updates applies to you. If so, then you should choose to upgrade your kernel, which would mean that you will have to reinstall your module.

This was last published in October 2007

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

SearchServerVirtualization

SearchCloudComputing

SearchEnterpriseDesktop

Close