Operating System - Linux
1827391 Members
4920 Online
109965 Solutions
New Discussion

Re: how to get source files(*.java, and *.cpp ) from *.src.rpm

 
SOLVED
Go to solution
Maaz
Valued Contributor

how to get source files(*.java, and *.cpp ) from *.src.rpm

Hello Dear Gurus

we have softx.src.rpm. the package is all written in java, and in c as well.
our develpors are neither familiar with rhl nor with rpms.
we have to make some changes/updations/alteration in the softx.src.rpm.

so

1, how can we get the source from the .src.rpm package, so that our develpors can customize the package. I mean plz le me know the syntax ... so that i can get the source files from the .src.rpm package.

then
2, now, suppose we made the changes in the source that we get from .src.rpm... now what should we do to make the changes in the form of softx.rpm., i.e in the form of just softx.rpm.

Thanks in Advance

Regards
Maaz
2 REPLIES 2
NiCK_76
Respected Contributor
Solution

Re: how to get source files(*.java, and *.cpp ) from *.src.rpm

2/ rpmbuild --rebuild *.src.rpm
New rpm files in the /usr/src/redhat/RPMS/
use rpm -Uvh to install them
just for fun
Vitaly Karasik_1
Honored Contributor

Re: how to get source files(*.java, and *.cpp ) from *.src.rpm

1. rpm -i package.src.rpm - you'll get sources under /usr/src/redhat/SOURCES