Making rpm with src.rpm
1. rpm -i foo.src.rpm
its will create a spec file in /usr/src/rpm/SPEC
2. Go to the /usr/src/rpm/SPEC
Now run the command
rpmbuild -ba foo.spec
3. when operation is completed go to /usr/src/redhat/RPM/I386
you will find the rpm in that folder.
Making rpm with tar.gz
Note: Some tar.gz has SPEC file inside if its there just run below command it will create rpm , But some wont you have to create spec file manually in /usr/src/redhat/SPECS ,Spec file will be avilable from one and only dag weers web site http://dag.wieers.com/howto/rpm/. SPEC file is nothing its a file were we are mentioning about location that rpm must be installed and wat version, who made it ,just see one spec file you will get an idea.
You have to download tar file and place it in /usr/src/redhat/SOURCES
eg.
1. rpmbuild -ta foo.tar.gz
if no error occurs go to /usr/src/redhat/RPM/
your rpm is ready
1 comment:
Kool man i will try this
Post a Comment