Re: install kernel-source

From: Jan Gerrit Kootstra (news_at_kootstra.org.uk)
Date: 07/12/05


Date: Tue, 12 Jul 2005 07:39:31 +0200


"kevin" <kevin.liang@kingproducts.com> schreef in bericht
news:1121119741.898633.33620@g49g2000cwa.googlegroups.com...
> HI,
>
> I wanna install kernel-source, Here are the steps what I did:
> 1)rpm -ivh kernel-2.6.9-1.667.src.rpm
> 2)rpmbuild -bp --target=noarch /usr/src/redhat/SPECS/kernel-2.6.spec
>
> after these steps, I can find the source at
> '/usr/src/redhat/BUILD/kernel-2.6.9'
>
> However, when I type command
> rpm -q kernel-source
>
> it always said "package kernel-source is not installed"
>
> Can anybody tell me why? (I am using FC3)
>
> Thanks
>

Kevin,

Because you installed the source rpm for the kernel rpm. A source rpm is a
package that is used to create a binary rpm. Normally only used if you do
not have the binary rpm available or have another kind of CPU.

You need to look for the kernel-source*.rpm file and install that.

Regards,

Jan Gerrit



Relevant Pages

  • Re: How to update KDevelop after clean RH 9 install.
    ... >>I've just done a clean install of RH9. ... I didn't try it with KDevelop though, ... > Instead of installing the binary rpm, ...
    (comp.os.linux.development.apps)
  • Re: Simple question?
    ... > source files. ... This is what you want to install, ... > kernel-source.x.y.x.src.rpm would be the rpm for the source with which you ... > the complete kit for compiling & creating your own binary rpm, ...
    (alt.os.linux.suse)
  • Re: FC4 timezone RPM problem
    ... I tried to rpmbuild -bi it. ... It would not install. ... If you want to create an RPM, ... you can use -bb to build the binary RPM, or -ba to build both the ...
    (Fedora)
  • Re: How to update 2.4.21-99 when Ive installed 2.4.22?
    ... |> the kernel, initrd, and modules. ... |The patch installed by YOU does install the updated kernel source if you ... I said that the binary RPM doesn't contain any ...
    (alt.os.linux.suse)
  • Re: New kernel broke my nic module
    ... >someone started me down the garden path. ... because it means that the new RPM was not installed. ... install the module by hand in the appropriate place in /lib/modules. ... Extract the module from the binary RPM using rpm2cpio, ...
    (linux.redhat)