Converting .tar.gz to .rpm
hi all ,
I want ask u guyz that Is there any utility to convert .tar.gz or .bz package to .rpm ?? PLzz give some links at least where i can find abt the same . Thanks in advance. |
Probably you consider .tar.bz2 is a source. So you can use checkinstall.
|
http://www.kitenet.net/programs/alien/ (non-commercial; Alien; interchanges deb, rpm, tgz, ...)
Sheng-Chieh |
And, as checkinstall's author claimed:
"By the way, there is an utility called Spasm which looks somewhat similar to checkinstall. You may want to check it out: http://www.codejunkie.net" |
The only way I really know how to do it is if the source file contains a spec file. If it does then the spec file from the source needs to be placed in /usr/src/redhat/SPECS and then the source file as is no extraction of it, to /usr/src/redhat/SOURCES. Then run the command ' rpmbuild -ba /usr/src/redhat/SPECS/name_of_spec_file.spec '. When it is done the rpm will be located in /usr/src/redhat/RPMS/i386.
I usually test it first by building from the source and if the source builds okay and a spec file exist I will build the rpm and install that. Most builds work like this, but the readme or install text files explain what to do, run ./configure, then make. If all works then build an rpm loike above. Hope this helps. Brian1 |
Not all sources packages can be built into rpms without writing your own spec files (I usually borrow from others if its a commaon package). You can take a look at rpm.org and your distros developers guide for how to create rpms that will work properly on that distro.
|
All times are GMT -5. The time now is 12:09 AM. |