Priyadarshi Acharya wrote:
This is my first query to the forum.
Welcome aboard :-)
How to build an RPM??
Everything you ever wanted to know about RPM is presented in a detailed book called "Maximum RPM". You can find this at http://www.rpmdp.org/rpmbook/
Anyway, answering your query in short, what you need is a file called as the spec-file, which specifies how an RPM package is to be built. Then you need the material to be put inside the package, and put that list in the spec-file. If it is source code, the spec-file should specify how it is to be compiled and how the binaries should be installed. Other wise it can simply contain how the files in the package are to be installed. If you are trying to create a package called foobar.rpm for example, assuming you have done everything else right, you use the following command:
rpm -bb --clean foobar.spec
The package should turn up in some directory under /usr/src/redhat/RPMS. But of course, you need to read Maximum RPM to get a good hang of the whole process!
HTH, SameerDS.
_________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com