LinuxQuestions.org
Review your favorite Linux distribution.
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 11-11-2005, 12:30 PM   #1
buckwheat12
Member
 
Registered: Jan 2004
Distribution: PCLOS 2007
Posts: 91

Rep: Reputation: 15
Need help with yum install kernel-devel


Ok, I just installed FC4. I do a uname -rm while in the console and I get the following as my installed kernel:

2.6.11-1.1369_FC4 i686

But, when I do a yum install kernel-devel it installs the following kernel source:

2.6.14-1.1637_FC4-i686

How do I get the correct kernel source installed? I need it to get the Nvidia driver installed.
 
Old 11-11-2005, 01:18 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
It would be a better idea to update the kernel and then boot the new kernel before you mess with installing the kernel-devel package.

yum update kernel*
(or yum update)
reboot
yum install kernel-devel
 
Old 11-11-2005, 07:14 PM   #3
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
"2.6.11-1.1369_FC4 i686" is the version shipped on the CD's. You can look on your CD's or DVD rom. This is included on the FC4 CD #4.

I would recommend extra caution when updating kernels.

(note) make sure to uninstall the current before getting from CD or DVD:
rpm -e kernel-devel

Last edited by mjmwired; 11-11-2005 at 07:15 PM.
 
Old 11-11-2005, 08:05 PM   #4
shams
Member
 
Registered: Jan 2004
Posts: 537

Rep: Reputation: 30
when you run the yum install accorfing to youm.conf, yum will install the latest version, if need the old version you should get the packaga and install with rpm -ivh.
 
Old 11-12-2005, 02:46 PM   #5
buckwheat12
Member
 
Registered: Jan 2004
Distribution: PCLOS 2007
Posts: 91

Original Poster
Rep: Reputation: 15
I just did a yum update kernel, rebooted and then installed the kernel-devel. I was then able to install the Nvidia driver. So...Thanks for the info it fixed my problem.
 
Old 11-13-2005, 07:02 AM   #6
xsive
LQ Newbie
 
Registered: Jan 2004
Location: Melbourne, AU
Posts: 14

Rep: Reputation: 0
would I be correct in assuming "kernel-devel" are the kernel sources?
I ask because I had a nightmare of a time trying to install a kernel SRPM to build ndiswrapper against. I grabbed it from the RedHat updates repository and it was missing include files ffs
 
Old 11-13-2005, 10:02 PM   #7
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Quote:
Originally posted by xsive
would I be correct in assuming "kernel-devel" are the kernel sources?
I ask because I had a nightmare of a time trying to install a kernel SRPM to build ndiswrapper against. I grabbed it from the RedHat updates repository and it was missing include files ffs
No you would not be correct. They are the kernel HEADERS. The kernel source must be installed separately through an SRC.RPM.
 
Old 11-14-2005, 02:31 AM   #8
xsive
LQ Newbie
 
Registered: Jan 2004
Location: Melbourne, AU
Posts: 14

Rep: Reputation: 0
Quote:
Originally posted by mjmwired
No you would not be correct. They are the kernel HEADERS. The kernel source must be installed separately through an SRC.RPM.
The headers don't come with the sources? what the hell kind of a system is that?!?
 
Old 11-14-2005, 09:21 PM   #9
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Quote:
Originally posted by xsive
The headers don't come with the sources? what the hell kind of a system is that?!?
Of course they do. How did you conclude the above statement?

The kernel-devel package is a smaller package which includes the kernel headers so one does not require the entire kernel source package to recompile certain drivers.

To clarify: there is no specific RPM with the kernel sources. There is only a source RPM (src.rpm) for this purpose. Previously RH would package a RPM called "kernel-source" which included the kernel source. This has been discontinued.

The point of my comment was to state that the kernel-devel RPM does NOT include the kernel source.
 
Old 12-28-2006, 02:16 PM   #10
guentherk1
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
Smile Using rpm2cpio and cpio to extract the rpm

Hi,

I know this is an old post but I thought I would add some information.

I took what I needed off of the dvd I got with the Fedora Core 5 - REL4 Bible book i bought. I also could have gotten the header I needed from a mirror like: http://ftp.linux.ncsu.edu/pub/fedora/linux/core/

I then created a directory to contain just the rpm and output from processing the rpm.

In my case I needed the rpm for the smp 686 version of "2054" for an setting up vmware 6.0 beta workstation on a Fedore Core 5 install. I used the uname -r command to figure out what version I needed. By the way inside the vm on VMWARE I needed the non smp version of header files.

kernel-smp-devel-2.6.15-1.2054_FC5.i686.rpm was what I needed.

I then did a cd to the directory I put the rpm in and did:

rpm2cpio kernel-smp-devel-2.6.15-1.2054_FC5.i686.rpm | cpio - ivd

This created over 5000 files in the directory I created. I then copied the 2 .../usr/src/kernels/2.6.15-1.
2054* directories to /usr/src/kernels directory.

I had already updated my main system to the 2257 kernel but I was having a slow boot startup problem with my Dell 8300 using the latter kernel. I am still mainly using the old 2054 kernel for now. The update on my system from 2057 to 2257 took about 10 hours to download and process with all of the software I had installed. I am using a slow cable modem config - about 1/3 mb.

The yum install kernel-smp-devel and rpm -ivv ... commands would not work directly with the higher level of the kernel installed.

Karl
 
  


Reply



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
No kernel-devel dingaling Fedora 5 11-10-2005 01:01 PM
yum kernel install - ??? linmix Fedora 3 03-20-2005 03:37 PM
Package fam-devel needs libselinux-devel belkins Linux - Newbie 2 10-18-2004 03:02 PM
where did YUM install my kernel-source? friedrice4u Linux - General 1 10-09-2004 09:44 PM
Can i install Kernel 2.6.3 via Yum / Apt? Anzxio Fedora 5 03-09-2004 09:22 AM

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

All times are GMT -5. The time now is 02:17 AM.

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