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



On Sep 7, 3:44 am, ibupro...@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin) wrote:
On Thu, 06 Sep 2007, in the Usenet newsgroup linux.redhat, in article

<1189064886.030988.210...@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

Thank you moe,now I have a better understanding of redhat packages.

.



Relevant Pages

  • The answers to these "Death of RedHat threads"..
    ... Q. Is RedHat Linux Dead? ... The product named "Redhat Linux" is no longer around as ... hat that is worn in the ReHat Shadowman logo is actually called a Fedora). ... package and any required dependencies and install them.. ...
    (linux.redhat)
  • Re: HELP! Poor sound quality for EMU10k1 (creative labs sound blaster live!)
    ... Hope the Fedora version can fix my problems. ... I found out it is actually the script /usr/bin/rhn-applet-gui. ... > that RedHat 9 is an old version of the free/community RH product, ... > Fedora Linux Core 1 is the newest of that line so the kernel is ...
    (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: FC2 doubtful quality?
    ... seems to be a large source of frustration for Fedora contributors. ... the same processes RedHat 9 did (user reports bugs, ... developer fixes bugs, releases a new package). ...
    (Fedora)
  • Re: how can I get the source tree from kernel.version.rpm
    ... Grab the source rpm, though that depends on the distribution as to what ... 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, ...
    (linux.redhat)