LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Converting .tar.gz to .rpm (https://www.linuxquestions.org/questions/linux-software-2/converting-tar-gz-to-rpm-375842/)

meetashwin_16 10-22-2005 03:03 PM

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.

Ygrex 10-22-2005 03:39 PM

Probably you consider .tar.bz2 is a source. So you can use checkinstall.

shengchieh 10-22-2005 07:40 PM

http://www.kitenet.net/programs/alien/ (non-commercial; Alien; interchanges deb, rpm, tgz, ...)

Sheng-Chieh

Ygrex 10-23-2005 05:45 PM

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"

Brian1 10-23-2005 06:04 PM

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

reddazz 10-24-2005 02:43 AM

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.