PDA

View Full Version : differnce between srpms and rpms



kumarannair
7th December 2004, 11:21 AM
Hello,
Please tell me what are the differences between the rpms and srpms

Whether the srpms are platform independent?
Could I use srpms instead of rpms to install a package or application without considering my machine platform or fedora version.

Kumar

Harryc
7th December 2004, 11:33 AM
http://www.linuxnovice.org/main_how.php3?VIEW=VIEW&t_id=52

foolish
7th December 2004, 01:01 PM
SRPM or src.rpm files are source code packages used to build the binary RPM packages that you install. A SRPM basicly contains a tarball with the source code (a tar.gz file) and a set of instructions on how to build the binary, a spec file.

So RPM is the packages you install to run software. SRPM is the source code, used by developers and advanced users to change the software itself or how it is packaged.

To build a binary RPM from a SRPM, use:


rpmbuild --rebuild file.src.rpm