LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-15-2002, 06:24 PM   #1
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Rep: Reputation: 30
tar.gz


Ok, so like %70 of files on the internet for Linux are "tar.gz" files. I can handle RPM's quite easily. But is there a way to make a "tar.gz" file a RPM? Or what exactly do I do with it?
 
Old 09-15-2002, 06:33 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Tar.gz files are compressed files, like .ZIP files, sortof. Normally you'd want to download them to a sensible place (I download mine to /home/gsewell/files/downloads) and then un-targz them. I usually use the ol' tar zxpvf something.tar.gz to do it. This creates a newdirectory (with the same name as the targz file) and unpacks all the files to it. If you go into that dir you should find files like README and INSTALL. These should detail how to install the software.

Oh, and quite often you'll also find .TAR.BZ files. To unpack these, you'd do the same, but replace the Z with a J.

Hope this helps.
 
Old 09-15-2002, 10:10 PM   #3
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
for a good understanding of how to deal with tarballs (archives compressed by tar), read the man pages for the tar command. as Thymox pointed out, the tarball usually contains the source code for the application. to find out about installing the program, read through the INSTALL and README files that are included in the tarball.
 
Old 09-17-2002, 01:09 AM   #4
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
Ooooooh this is neat!

Under Gnome I added the "tar.gz" extension under MIME and now when I double-click a "tar.gz" file it automatically extracts it to a directory. My only grip is that it extracts into my home directory, no matter where the file is. Is there a switch no make it extract where the file was saved?

 
Old 09-17-2002, 03:25 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Possibly by right clicking and seeing if that is an option. That is how KDE's ark does it.

Cool
 
Old 09-17-2002, 05:11 PM   #6
mace
Member
 
Registered: Apr 2002
Distribution: redhat7, 7.1, 7.2, 8.0, mandrake, debian2.2, 3, suse
Posts: 176

Rep: Reputation: 30
bob.tar.gz

tar -xzvf bob.tar.gz
cd bob
./configure
make
make install
 
Old 09-18-2002, 07:19 AM   #7
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
Quote:
Originally posted by mace

bob.tar.gz

tar -xzvf bob.tar.gz
cd bob
./configure
make
make install

please avoid following those directions as those are not always the case. especially when you need to configure an application with special instructions. also many times there may be a 'make test' or 'make check' or 'make clean' command you should run. please disregard mace's post and stick with what i said:



Quote:
Originally posted by GNUbie

to find out about installing the program, read through the INSTALL and README files that are included in the tarball.
 
Old 09-18-2002, 08:01 AM   #8
mace
Member
 
Registered: Apr 2002
Distribution: redhat7, 7.1, 7.2, 8.0, mandrake, debian2.2, 3, suse
Posts: 176

Rep: Reputation: 30
while it's true that you need to always read the README files i've found that what i suggested works with learning how to untar a program.

don't disregard any suggestions. learn but trial and error.
 
Old 09-18-2002, 08:11 AM   #9
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
Quote:
Originally posted by mace

it's true that you need to always read the README files

thank you.
 
  


Reply



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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 10:55 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 11:02 AM
.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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:10 PM.

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