LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   Difference between src.rpm files and source.rpm files (http://www.linuxquestions.org/questions/red-hat-31/difference-between-src-rpm-files-and-source-rpm-files-89566/)

ja_nch 09-05-2003 09:23 AM

Difference between src.rpm files and source.rpm files
 
I am interested in knowing what is the difference of the kernel-<version>.src.rpm and the kernel-source-<version>.rpm files

I was advised to use the -source rpm to install the source files into my computer. So what is the .src.rpm file for?

Thanks.

JN

DrOzz 09-05-2003 12:50 PM

a src.rpm in general, will extract to the /usr/src/redhat/SOURCES folder and you will have to take additional steps to install it, and any rpm in general will just install whatever the rpm is for ..

misc 09-06-2003 06:12 PM

src.rpms (aka source rpms) contain source tarballs, separate patches, separate scripts and specifications on how to compile all the includes stuff in order to build the binary rpms (*.i386.rpm, *.i686.rpm, *.athlon.rpm, noarch.rpm, ...) which you would install.

src.rpms are extracted like archives. They are not installed like binary rpms (which enter files into the RPM database).

The kernel src.rpm contains a loose collection of files, such as the original unmodified kernel from kernel.org plus hundreds of separate patches from Red Hat and from various sources. You would need to extract the kernel source archive and apply all the patches in exactly the same order and way as the src.rpm would do it upon running "rpmbuild --rebuild" on it.

On the contrary, the kernel-source binary rpm includes the fully patched ready-to-use kernel source tree that is used to build Red Hat's kernel versions found in their binary rpms. Inside /usr/src/linux-2.4 you can configure and build your own kernels and/or modules.


All times are GMT -5. The time now is 09:52 AM.