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.
|
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 |
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 |
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. |