LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   How can I generate / build and RPM from *.src.rpm file (http://www.linuxquestions.org/questions/red-hat-31/how-can-i-generate-build-and-rpm-from-%2A-src-rpm-file-531248/)

sreekumartg 02-22-2007 01:49 AM

How can I generate / build and RPM from *.src.rpm file
 
Hello,

I am looking for how can I build an RPM from an .src.rpm file and install it to the system...

Regards
Sreekumar T G

billymayday 02-22-2007 02:18 AM

Not something I've done for a while. Maybe this will help

http://plug.princeton.edu/linux/inde...d=46&Itemid=43

reddazz 02-22-2007 03:11 AM

All you would need to do is
Code:

#rpmbuild --rebuild somefile.src.rpm

wmakowski 02-23-2007 05:23 PM

1) Install the source package using rpm -ivh somepackage.src.rpm. This will place the source files in /usr/src/redhat/SOURCES and put a spec file in /usr/src/redhat/SPECS.
2) cd /usr/src/redhat/SPECS
3) rpmbuild -ba somepackage.spec

The binary rpm will end up under the /usr/src/redhat/RPMS directory in one of the architecture directories such as i386.

Bill


All times are GMT -5. The time now is 04:44 PM.