Results 1 to 3 of 3
Friends Please help me in creating a rpm for my own package or folder or file. Please if possible send me a guide in step by step process. its urgent...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-02-2007 #1
- Join Date
- Feb 2007
Friends Please help me in creating a rpm for my own package or folder or file.
Please if possible send me a guide in step by step process.
- 02-02-2007 #2
- Join Date
- Aug 2006
- 02-02-2007 #3
follow the following steps (project name is "example")
1] Make the binary files for your source code
2] Compile Your Source Code for Creating ".o" file, it'll help in Makefile:
# gcc *.c -c
3] Create Makefile
4] Compile the "Makefile" with "make -d" option
# make -d
5] Create "tar" file with your directory: for example the directory is example-1.0
# tar cvf example-1.0.tar example
6] make it zip file; with gzip command
# gzip example-1.0.tar
7] Move the "example-1.0.tar.gz" file into "/usr/src/redhat/SOURCE/" directory
8] Create/Copy the ".spec" file into "/usr/src/redhat/SPEC" directory
9] Now, build "RPM" with "rpmbuild" command
# rpmbuild -ba /usr/src/redhat/SPEC/example-1.0.spec
10] Check the RPM into "/usr/src/redhat/RPMS/i386/" directory
if u have any dout for the make file and .spec file then ask me.