LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2001, 08:58 PM   #1
Manyguns
LQ Newbie
 
Registered: May 2001
Posts: 28

Rep: Reputation: 15
Cool


What exactly does this file extension stand for, and how do I install files that contain it. Please give me some advice.
 
Old 06-01-2001, 09:35 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
the tar stands for Tape ARchive,and the .gz indicates that it was compressed with gzip. there is also a .bz2 extension indicating bzip2 compression (bzip2 makes slightly smaller compressed files)

to extract type: gunzip filename.tar.gz

then read the install or readme file for final install instructions

its usually ./configure
make
make install

 
Old 06-02-2001, 09:35 AM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
It should be noted that rshaw's example extract command will only leave you with a filename.tar file, not the contents of the tar. If you just have a .tar file then use
Code:
tar xvf filename.tar
to extract the contents. Peronally I like to see what it's extracting hence the 'v' in the above (verbose) if you don't want the lisings remove the v.

You can also do it all in one go if you have the GNU version of tar (99% likely) by doing a
Code:
tar xvfz filename.tar.gz
which will first run the file through gzip for you (BTW gunzip is really 'gzip -d'). If you're using a bzip2 file there is a command to tell tar to first filter it through a program (in this case bzip2) but I can never remember it so I use
Code:
bzip2 -dc filename.tar.bz2 | tar xvf -
The way you think of it is that tar joins lots of files together, and gzip/bzip2 compresses them to make them smaller. Unlike the .zip format that you have no doubt used in the past .gz files can contain only a single file, hence the use of tar first.

HTH

Jamie...
 
Old 06-04-2001, 06:12 PM   #4
justin19fl
Member
 
Registered: Apr 2001
Location: Pensacola, Florida
Distribution: Red Hat 9
Posts: 42

Rep: Reputation: 15
related question

Why don't Linux users just use Zip files? They seem so much simpler.
 
Old 06-04-2001, 07:21 PM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Re: related question

Quote:
Originally posted by justin19fl
Why don't Linux users just use Zip files? They seem so much simpler.
I've never really heard a good answer for this one... Probably just becuase tar has been around since the dawn of time (as all UNIX users know, time began on 1/1/1970 ) so we've stuck with it. As for gzip Vs. Zip gzip does seems to give slightly better compression.

If anyone does know a 'real' reason I'd love to know! The only one I can think of is that .zip files won't hold details of file owners or permissions, but .tars will.

Jamie...
 
Old 06-04-2001, 07:48 PM   #6
justin19fl
Member
 
Registered: Apr 2001
Location: Pensacola, Florida
Distribution: Red Hat 9
Posts: 42

Rep: Reputation: 15
Cab files are smaller than both. How come nobody uses Cab files? The only place I ever see them is for Windows backups and Windows CD's.
 
Old 06-04-2001, 07:50 PM   #7
justin19fl
Member
 
Registered: Apr 2001
Location: Pensacola, Florida
Distribution: Red Hat 9
Posts: 42

Rep: Reputation: 15
Microsoft obviously likes them, so I guess that's a good reason to dislike them.
 
Old 06-04-2001, 10:47 PM   #8
Sakura_Samurai
LQ Newbie
 
Registered: Jun 2001
Distribution: Red Hat 7.1
Posts: 4

Rep: Reputation: 0
I belive, but I am not sure, that Microsoft developed the CAB system.
 
  


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 - Newbie

All times are GMT -5. The time now is 01:02 AM.

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