LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-05-2006, 03:22 PM   #1
diogobaeder
LQ Newbie
 
Registered: Jun 2004
Location: São Paulo, SP, Brazil
Distribution: Fedora 5
Posts: 23

Rep: Reputation: 15
Can't install kernel source


Hi there,

I tried to install the kernel source, but it just doesn't work.

I followed the two steps:
  • 1 Installing the package:
    Quote:
    [root@localhost MyDownloads]# rpm -ivh kernel-2.6.15-1.2054_FC5.src.rpm
    1:kernel ########################################### [100%]
    [root@localhost MyDownloads]#
  • 2 Running the package:
    Quote:
    [root@localhost MyDownloads]# yum install kernel-source
    Loading "installonlyn" plugin
    Setting up Install Process
    Setting up repositories
    updates-source [1/6]
    core-source [2/6]
    development [3/6]
    core [4/6]
    updates [5/6]
    extras [6/6]
    Reading repository metadata in from local files
    Parsing package install arguments
    No Match for argument: kernel-source
    Nothing to do
    [root@localhost MyDownloads]#

As you guys see, the installation cannot be completed. Anybody knows why?

Thanks!
 
Old 07-05-2006, 04:36 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Yum retrieves packages from remote repositories. None of the repositories contain the kernel source.

rpm -ivh installed the kernel source. You need to do this next:

rpmbuild -bp --target=noarch /usr/src/redhat/SPECS/kernel-2.6.spec

Then the source files will be located in /usr/src/redhat/BUILD/kernel-2.6.15/
 
Old 07-05-2006, 04:44 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you just want to compile drivers that need the kernel source, install the kernel-devel package and not the kernel source rpm.
 
Old 07-05-2006, 04:51 PM   #4
diogobaeder
LQ Newbie
 
Registered: Jun 2004
Location: São Paulo, SP, Brazil
Distribution: Fedora 5
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks, Arow! Gonna try it... it's not going to mess up my 2.6.17 kernel version, bootable by grub, is it? Because I've been testing both kernels (the new version I couldn't find in SMP - multi-processor version).

Hey, reddazz, nice seeing you around here! :-)
Gonna try kernel-devel, too. Can I do it by "yum install kernel-devel"?

Thanks a lot, buddies!
 
Old 07-05-2006, 05:00 PM   #5
diogobaeder
LQ Newbie
 
Registered: Jun 2004
Location: São Paulo, SP, Brazil
Distribution: Fedora 5
Posts: 23

Original Poster
Rep: Reputation: 15
Hi, reddazz,

I tried to do a "yum install kernel-devel", but it tries to install over the wrong kernel (a kernel I'm not using). Is there any command I'm missing?

Thenks!
 
Old 07-05-2006, 05:15 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by diogobaeder
Hi, reddazz,

I tried to do a "yum install kernel-devel", but it tries to install over the wrong kernel (a kernel I'm not using). Is there any command I'm missing?

Thenks!
The kernel-devel package is always for the latest kernel in the FC5 repos. If you are using an older kernel, you will have to find the kernel-devel package that matches the kernel you are running. Pbone usually has links to older kernel-devel packages.
 
Old 07-05-2006, 07:44 PM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by diogobaeder
Thanks, Arow! Gonna try it... it's not going to mess up my 2.6.17 kernel version, bootable by grub, is it? Because I've been testing both kernels (the new version I couldn't find in SMP - multi-processor version).
No all it's gonna do is install the source code in the aforementioned directory. You have to configure, compile, and install the new kernel and associated modules before you can boot it. In any event, it'll just add an entry for the new kernel to grub.conf. It'll probably be set as the default kernel, but you can always edit grub.conf to your liking.
 
  


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
Configure kernel source for standard debian kernel (module install) twinkers Debian 2 12-22-2005 11:19 AM
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
10.1 install kernel and kernel-source different - build fails Feebles Mandriva 2 06-10-2005 06:58 PM
kernel source install Odin5578 SUSE / openSUSE 1 11-04-2004 02:29 AM
slackware kernel source install (kernel 2.6.6) ? LinuxOG Slackware 22 06-06-2004 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:51 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