Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-22-2005, 03:03 PM   #1
LQ Newbie
Registered: Mar 2005
Location: india
Distribution: SUSE9.3,PCQ05,SLACK10.1 without Windows
Posts: 5

Rep: Reputation: 0
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.
Old 10-22-2005, 03:39 PM   #2
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
Probably you consider .tar.bz2 is a source. So you can use checkinstall.
Old 10-22-2005, 07:40 PM   #3
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30 (non-commercial; Alien; interchanges deb, rpm, tgz, ...)

Old 10-23-2005, 05:45 PM   #4
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
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:"
Old 10-23-2005, 06:04 PM   #5
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
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.
Old 10-24-2005, 02:43 AM   #6
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
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 and your distros developers guide for how to create rpms that will work properly on that distro.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting .rpm/.tar.gz to .deb packages Eerath Linux - Newbie 4 07-28-2005 06:48 AM
converting tar files rjohnson244 Linux - Software 2 12-07-2004 07:47 AM
Converting tar.gz to. tgz Spyiish Slackware 26 11-09-2004 11:00 PM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 12:08 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 06:30 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration