cancel
Showing results for 
Search instead for 
Did you mean: 

whats src.rpm ?

SOLVED
Go to solution
Maaz
Valued Contributor

whats src.rpm ?

Hi Dear Gurus

1, what is .src.rpm ?
2, or, what is the diff b/w .src.rpm and .rpm ?

Regards
Maaz
5 REPLIES
Chris Xu
Trusted Contributor
Solution

Re: whats src.rpm ?

1. src.rpm is a package of the source code.
2. .rpm (no src. before it) is a package of binary code.

.rpm packages are ready to run after installation, but src.rpm packages not not. You have to compile a src.rpm package after installing.

Chris
Maaz
Valued Contributor

Re: whats src.rpm ?

Thanks Dear Chris for such a prompt reply.

if *.src.rpm is a source code, then le me know how can i check the source code of abc.src.rpm ?

Thanks
Regards
Maaz
Chris Xu
Trusted Contributor

Re: whats src.rpm ?

run the following command to see a list of source files in the package:
# rpm -qpl xxx.src.rpm | less

Assuming the pacakge is at the current directory.
Peeyush
Regular Advisor

Re: whats src.rpm ?

src.rpm are source rpm's and are meant to be used to build binary rpm packages. tar.gz packages are usually just plain source code that would require tweaking and or creation of a ".spec" file which is what rpm uses to create rpm packages for redhat/mandrake

while installing some RPM's, it requires few other packages/libraries cause when that RPM was buit those packages/libraries were installed.

you can install RPM using the following command
# rpm -ivh XXX.rpm
-ivh : install, verify and Hash

See the following for installing src.rpm
http://linux-faqs.com/Forum/viewtopic.php?p=5

hope it helps
any suggestion for my site.. http://geocities.com/peeyush_maurya/
Maaz
Valued Contributor

Re: whats src.rpm ?

Many Thanks Dear Chris
and ofcourse
Many Thanks Dear Peeyush

Regards
Maaz