Review your favorite Linux distribution.
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 09-24-2003, 05:52 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 19

Rep: Reputation: 0

what are tar.gz and tar.bz2 and how to make use of them?

in other words how do i install softwares? if you dont want to go through details just post a link
Old 09-24-2003, 06:01 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
They are compresed archives you can "unzip" them with:
tar -xzf myfile.tar.gz
tar -xjf myfile.tar.bz2

There is usually a file called README or INSTALL that tells you how to use/install the software within. Also take a look a jeremy's "Linux Answer":
Old 09-24-2003, 06:03 PM   #3
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
they are compressed files type ::
tar -zxvf filename.tar.gz to extract tar.gz
tar -jxvf filename.tar.bz2 to extract tar.bz2
and usually they are source files for installing stuff, that is not always the case, but its most often true...and a typical procedure to take is to cd into the extracted directory and run::
su -c "make install"

this is not always the case, and thats why there is a README and INSTALL file usually packed with these so read them and see what you actually have to do to run/install whatever you may have...
Old 09-24-2003, 06:17 PM   #4
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
Re: TAR.gz

Originally posted by ramzi
what are tar.gz and tar.bz2 and how to make use of them?

in other words how do i install softwares? if you dont want to go through details just post a link

gunzip file.tar.gz
tar -xvf file.tar

bunzip2 file.tar.bz2
tar -xvf file.tar.bz2


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 01:08 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:02 PM.

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