Re: how can I get the source tree from kernel.version.rpm



On Thu, 06 Sep 2007, in the Usenet newsgroup linux.redhat, in article
<1189064886.030988.210800@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, scott wrote:

I am a newbie in linux kernel.I know I can download the source file
from kernel.org(like 2.6.20.tar.gz),however, I don't know clearly how
kernel source code are located in redhat.

Well, let's start with "which Red Hat"? Fedora? RHEL? A GPL clone?

if I download a kernel file(such as kernel.2.6.10.smp.rpm), using rpm -
ivh to install it,then I will get all the vmlinuz,system.map,
configure files ,etc.But how could I get the souce tree?

Grab the source rpm, though that depends on the distribution as to what
the package would be called, and where it would be found. For example,
the RELEASE-NOTES file from Fedora Core 7 reads

9.1. Version

Fedora may include additional patches to the kernel for improvements,
bug fixes, or additional features. For this reason, the Fedora kernel
may not be line-for-line equivalent to the so-called vanilla kernel from
the kernel.org web site:

http://www.kernel.org/

To obtain a list of these patches, download the source RPM package and
run the following command against it:

rpm -qpl kernel-<version>.src.rpm

If you read the man page for 'rpm' you'll find that the '-qpl' options
are Querying an uninstalled Package for a file Listing - i.e. it's not
going to install the package. If you were to install (-i) the package,
it should wind up in the /usr/src/redhat/ directory tree (and the -qpl
should show this).

Old guy

.



Relevant Pages

  • Re: how can I get the source tree from kernel.version.rpm
    ... the package would be called, and where it would be found. ... the RELEASE-NOTES file from Fedora Core 7 reads ... Fedora may include additional patches to the kernel for improvements, ... Thank you moe,now I have a better understanding of redhat packages. ...
    (linux.redhat)
  • Re[2]: Custom kernel packages
    ... >> I looking for documentation about how to compile kernel for Fedora ... >> Core and how to package it for easy deployement via rpm. ...
    (Fedora)
  • Re: Nvidia sucks, sucks, sucks !
    ... 2835 (or any other kernel for that matter). ... touched the original nVidia driver package in years, ... Some of the fedora web pages were down right after the release of FC6, ... they don't always keep up with updates-testing. ...
    (Fedora)
  • RE: Incomplete Distro???
    ... Did this say the package kernel-headers? ... FC2 IIRC the headers are in the kernel-source RPM which is on disk 2. ... nothing else from the kernel source tree. ... The kernel-source package is also available from the fedora site at ...
    (Fedora)
  • Re: Iomega ZIP-100 drive unsupported with jmicron JMB361 chip?
    ... After compilation and installation of the kernel rpm, ... Note that my Fedora 7 and Fedora 8 distributions share no directories ... # IPVS transport protocol load balancing support ... # AX.25 network device drivers ...
    (Linux-Kernel)