LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-10-2003, 11:17 AM   #1
Whosrodney
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Rep: Reputation: 0
kernel-source RPM problem


Hi, I'm trying to install the kernel source rpm for kernel 2.4.20-20.9 and am having some problems. I have already installed the binary version of the kernel. I install the rpm, it gives me a warning, appears to install, and then is not installed. I upgraded from the 2.4.20-8 kernel and am also trying to upgrade the source, but it is not working. Thanks for any help. Here are the commands I'm using:

Code:
# cd /usr/src
# ls
debug
linux-2.4
kernel-2.4.20-20.9.src.rpm
redhat
# rpm -ivh kernel-2.4.20-20.9.src.rpm
warning: kernel-2.4.20-20.9.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
     1:kernel             ################################################### [100%]
# ls
debug
linux-2.4
kernel-2.4.20-20.9.src.rpm
redhat
# rpm -qa | grep kernel-source
kernel-source-2.4.20-8
#
 
Old 09-10-2003, 11:24 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
The kernel is normally upgraded by Up2Date. Another way of doing this would be via apt4rpm.

I believe the *.src.rpm merely creates another rpm file - it doesn't actually contain the source for the kernel (or Kernel Source).

Do you already have a copy of an earlier kernel source?
 
Old 09-10-2003, 11:27 AM   #3
Whosrodney
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Yes, I have kernel source for 2.4.20-8 kernel that came with the distro.
 
Old 09-11-2003, 02:53 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Is it installed?
 
Old 09-29-2003, 03:32 AM   #5
justahannah
LQ Newbie
 
Registered: Sep 2003
Location: Columbia Gorge
Distribution: RedHat 9
Posts: 2

Rep: Reputation: 0
Question Running into a similar problem...

Although, my machine isn't picking up having a kernel-source installed at all. I'm running Redat 9 but found out when I tried to install the drivers for my video card something's not linking right or doesn't exist because it tells me I need to have a kernel-source installed before it can do it's thing. When I try to usel the kernel-source rpm off the install cd for RH9, it gets about halfway through checking for package dependencies (where it's says 'reading individual package headers') and dead-ends. Up2Date says everything's there and updated to the most current versions, but I can't grep, whereis, or slocate it. I'm currently looking for a d/l of the 2.4.20-20.9 rpm independent of the Up2Date, but I have a feeling I'm going to get the same "already installed" errors. Any insight?

Hannah
 
Old 09-29-2003, 04:31 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
try rpm -e <package name> to uninstall. Then go to the Red Hat Network and select downloads and search for the rpm - you should then be able to d/l and install it. I have noticed it hangs on the installation, but if you leave it it continues eventually.
 
Old 09-29-2003, 04:56 PM   #7
justahannah
LQ Newbie
 
Registered: Sep 2003
Location: Columbia Gorge
Distribution: RedHat 9
Posts: 2

Rep: Reputation: 0
I'm on my lunch break now, not a huge amount of time to mess with it (at least, not as much as I'd like), but I'll definitely try that. Thanks a bunch!
Hannah
 
Old 09-30-2003, 04:59 PM   #8
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Don't confuse the kernel-source binary rpm (i.e. i386.rpm) with the kernel src.rpm. You want the former. The latter is not installed, but extracted like an archive (by default to /usr/src/redhat). It is used to build the binary rpm packages which is not what you want.

Get the kernel-source-2.4.20-20.9.i386.rpm, not the src.rpm.
 
  


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
RPM installer doesn't see my kernel-source ? Biased turkey Mandriva 4 01-21-2005 12:57 PM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus SUSE / openSUSE 5 12-02-2004 12:48 PM
kernel-source rpm itywygms Linux - Newbie 1 08-21-2004 12:51 PM
Problem installing Mandrake kernel source rpm Gibson Linux - Newbie 4 07-30-2004 01:42 PM
Kernel source RPM carlosjjang Linux - Software 1 05-06-2004 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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