Re: how can I get the source tree from kernel.version.rpm
- From: ibuprofin@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin)
- Date: Thu, 06 Sep 2007 14:44:56 -0500
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
.
- Follow-Ups:
- References:
- Prev by Date: Re: how can I get the source tree from kernel.version.rpm
- Next by Date: Re: how can I get the source tree from kernel.version.rpm
- Previous by thread: Re: how can I get the source tree from kernel.version.rpm
- Next by thread: Re: how can I get the source tree from kernel.version.rpm
- Index(es):
Relevant Pages
|
|