problem with src.rpm

Pablo Barroso Cubillas pablo.barroso at ico.es
Wed Oct 1 12:12:00 CDT 2003


Message: 9
Hi:
      RH AS 21, we need the source of latest kernel ( 2.4.9-e27) I have
downloaded it form RH network ( kernel-2.4.9-e.27.src.rpm ) after rpm -i
kernel-2.4.9-e.27.src.rpm I was hoping to have /usr/src/linux-2.4.9-e.27
but nothing. ¿Any tips or I will need to contact directly to RH people?

Message: 10
From: Diego_Leccardi at Dell.com
To: dballester at kernpharma.com
cc: linux-poweredge at Dell.com
Subject: RE: problem with src.rpm
Date: Tue, 30 Sep 2003 04:44:08 -0500
Hi there,
You need the kernel-source-2.4.9-e.27.rpm and not the kernel-2.4.9-e.27.src.rpm.




==> Wrong:

You can create your packages with the file you downloaded 
(kernel-2.4.9-e.27.src.rpm ):

After installing kernel-2.4.9-e.27.src.rpm, if you look under 
/usr/src/redhat, you'll find several directories, each containing 
sources, patches, etc...

One thing to note is that if you "rpm -qa |grep kernel", you won't find 
that package as installed, but it is there (/usr/src/redhat)

How to compile ?


cd /usr/src/redhat/SPECS

rpm -bb --target i686 kernel-2.4.spec

This will take a while... go for a coffee. When everything is done (on 
my case it all worked fine), you'll have
this BINARY file:

 /usr/src/redhat/RPMS/i686/kernel-2.4.9-e.27.i686.rpm

which you can install as:

rpm -i /usr/src/redhat/RPMS/i686/kernel-2.4.9-e.27.i686.rpm

And exec "lilo" if you use it as boot loader.

DO ALL THE USUAL CHECKS WITH YOUR BOOT LOADER BEFORE REBOOTING !

-- 
Pablo Barroso Cubillas

_____________________________________________

Mr Gandhi, what do you think of Western Civilization?
- "I think it would be a good idea."





More information about the Linux-PowerEdge mailing list