LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2006, 08:10 AM   #1
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Rep: Reputation: 30
Wrong kernel?


Hi just a quick worried question, i've tried to install ndvidia drivers for my madnriva isntall and was trying to install the kernel-source code by typing urpmi kernel-source.

It installed the package but on closer inspection, its installed 2.6-2.6.12-22mdk.i586.rpm but when typing uname -a in a console it says my kernel is 2.6.12-12mdk. Is this a problem and if so is there a way of reversing it without completely wiping the system?

Last edited by Maverick1182; 07-03-2006 at 09:30 AM.
 
Old 07-03-2006, 08:26 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Well yes, if the version numbers do not match, then you've got a slightly different kernel source than your running kernel is. Yet you haven't done anything dangerous, since installing the kernel sources means, as far as I know (the rpm-installation), installing the source files in a specific directory on the system. You can safely remove the package thus removing the source files but not affecting anything; the thing is, if you would compile from that source, you'd get a kernel of different version (in this case a newer one; that shouldn't be a problem).

If you're installing nvidia drivers then you shouldn't need to recompile your kernel; at least this far it has just been a matter of downloading a .run file that compiles it's own nvidia kernel module and installs it to the kernel. You need the kernel source code only if you plan to recompile your whole kernel (ie. if you want to alter the kernel configuration), but if you're just installing video drivers that's not needed.

You don't need to remove the kernel sources if you don't want to do so. If the nvidia installer requires you to have your kernel sources, then you need to install the same version of the sources than your current kernel is (so the version you get from uname is the same as in the package you installed). You should be able to have multiple kernel sources installed at the same time (but I don't know if that's of any use for you).

If you don't need the kernel sources, just let them be or remove the package as you'd normally remove a package (of some application, say). If you do need, you can remove the package if you like, but before you go installing the driver, get and install the sources of your kernel's version or update your kernel to the version of the sources.
 
Old 07-03-2006, 09:30 AM   #3
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Original Poster
Rep: Reputation: 30
Thanks, forsome reason Mandriva decided to install 12-22 version even though there was a 12-12 (my version) available. I've installed the correct version now and nvidia drivers work fine now. Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
the wrong kernel! TomalakBORG Slackware - Installation 5 03-30-2005 10:17 PM
rpm -qa | grep kernel gives wrong kernel version markelo Red Hat 3 07-18-2004 10:35 AM
Something wrong with Kernel serzz Linux - Software 2 04-03-2004 11:25 AM
wrong kernel? nocturnal Slackware 3 06-12-2003 07:22 PM
Wrong kernel mdebolt942 Linux - General 1 01-08-2003 12:43 PM


All times are GMT -5. The time now is 10:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration