LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-23-2006, 02:34 PM   #1
semberal
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
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...
 
Old 12-23-2006, 02:47 PM   #2
Lenard
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: Reputation: 58
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.
 
Old 12-23-2006, 03:39 PM   #3
semberal
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 12-24-2006, 06:58 AM   #4
Lenard
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: Reputation: 58
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.
 
Old 12-24-2006, 11:27 AM   #5
snecklifter
Member
 
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982

Rep: Reputation: 30
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
 
  


Reply

Tags
fedora, kernel, kmod, update



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Lilo prevent Windows from updating? snurfle Linux - General 2 07-15-2006 10:23 AM
How to prevent Yum/Yumex/Kyum from removing old kernel?? Hitboxx Fedora 2 06-28-2006 04:53 AM
Updating Kernel w/ Yum scorpioofthewoods Fedora - Installation 4 06-13-2006 11:33 AM
updating kernel using yum and compiling it`s sources Ruald Linux - Newbie 3 05-01-2006 05:22 PM
How can I prevent up2date from updating packages I didn't install? fiservguy Red Hat 1 06-02-2005 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration