1829466 Members
1710 Online
109991 Solutions
New Discussion

RPM BUild

 
SOLVED
Go to solution
Ragni Singh
Super Advisor

RPM BUild

Hello, what is the procedure and or how do you build a rpm. I'm not talking about install,remove, query rpm.

I was asked this in a interview and I had no idea. Thanks and I will assign points.
3 REPLIES 3
Ivan Ferreira
Honored Contributor
Solution

Re: RPM BUild

I could understand that question in two ways:

Build an source rpm using rpmbuild --rebuild command.

Creating your own rpm package. See:

http://erizo.ucdavis.edu/~dmk/notes/RPMs/Creating_RPMs.html
http://download1.sw-soft.com/Plesk/Plesk7.5/Doc/plesk-7.5r-sdk-html/docs/plesk_modules/unix/ch11.html
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Vipulinux
Respected Contributor

Re: RPM BUild

Hi
In order to create an rpm for tar.gz do:
'rpmbuild -ta urfile.tar.gz'

Hope thsi helps.
Thanks
Ajay Agarwal
Frequent Advisor

Re: RPM BUild

To build an RPM package, you need to write an input file for RPM, called a spec file, which tells RPM how to build and package your software.
Then place the files/binaries to be packaged at specific location and then use rpm -ba cmd to build rpm.

check the following url:

http://www-128.ibm.com/developerworks/library/l-rpm1/