Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-23-2006, 02:34 PM
|
#1
|
LQ Newbie
Registered: Dec 2006
Posts: 3
Rep:
|
Prevent yum from updating kernel
I have serious problems with my Asus A6T notebook. Fedora 6 doesn't recognize my ethernet adapter, so i had to compile the module on my own. But it works only with the 2.6.18-1.2798 kernel. I upgraded the kernel and my net was down. So, I just have a question: Is it possible to prevent yum from installing newer kernel version of kernel as a dependency? Or don't you know why the compiled module doesn't work with newer kernel? Thank you very much...
|
|
|
12-23-2006, 02:47 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
As root edit the /etc/yum.conf file, example (with excluding the kernel updates) below;
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
exclude=kernel*
See http://fedora.redhat.com/docs/yum/en/ for the details.
Last edited by Lenard; 12-23-2006 at 02:49 PM.
|
|
|
12-23-2006, 03:39 PM
|
#3
|
LQ Newbie
Registered: Dec 2006
Posts: 3
Original Poster
Rep:
|
great, thank you, works very well, but don't you know what about the module problem? Module compiled on a certain version of linux kernel doesn't work with different version of linux kernel?
And the last thing: If I didn't update my kernel for a period of FC6, could I get into trouble?
Thank you
Last edited by semberal; 12-23-2006 at 03:48 PM.
|
|
|
12-24-2006, 06:58 AM
|
#4
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Most of the time modules built for a kernel are just for that kernel. If you update the kernel you need to rebuilt the module. Most of us that use module(s) outside of the prebuilt kernels do rebuild the module(s) when updating the kernel.
Updating the kernel is a matter of choice, if the update is for security reasons then yes it is a good idea to update. If for bug fixes then maybe yes maybe no, this depends on what the bug fixes are for. if for hardware that you do not have then no real reason to update. No you will not get into trouble by not updating the bug fix kernels, but it a good idea to update for security reasons.
|
|
|
12-24-2006, 11:27 AM
|
#5
|
Member
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982
Rep:
|
Some repositories offer an additional package which checks for kernel modules and updates them when the kernel is updated. For ATrpms it is yum-plugin-kmdl, for livna it is something like yum-updates-kmod I think.
Regards
Chris
|
|
|
All times are GMT -5. The time now is 09:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|