LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how do I make a binary rpm from a source rpm (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-make-a-binary-rpm-from-a-source-rpm-276304/)

darkone66669 01-10-2005 07:41 PM

how do I make a binary rpm from a source rpm
 
How do I make a Binary RPM from a src RPM and or remove the source junk from the rpm so I can compile it.

megaspaz 01-10-2005 07:43 PM

assuming you have a working compiler and depending on which version of rpm you have, try:

rpm --rebuild filename.src.rpm
or
rpmbuild --rebuild filename.src.rpm

those should create rpms in /usr/src somewhere depending on your distro.

*redhat will create the rpms in /usr/src/redhat/RPMS/i386

Fusionline 01-10-2005 10:04 PM

once you get an src rpm , install it
rpm -ivh <filename.src.rpm>
then chek in /usr/src/redhat/SPECS/<filename.spec> or /usr/local/redhat/SPECS/<filename.spec>(you can edit spec file to ur requirement by setting proper configuration options)
go to spec directory
and run
rpm -bi <filename.spec>
it places the builded rpm in /usr/src/redhat/RPMS/ or the other path

darkone66669 01-11-2005 10:42 AM

ty very much for the help it actually worked with some minor modifications the rebuild failed but it unpacked everything into the build folder and I compiled the old fashion way since I don't know much about spec files and how to edit them so they are right now I have a slightly different problem with it but will search for a little bit before posting


All times are GMT -5. The time now is 10:13 PM.