Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-13-2006, 10:35 AM   #1
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Rep: Reputation: 37
extract tar.gz file

Hey there!!!!
Does anyone know how to extract a file with 'tar.gz' extention?
Actually i want to install this file.

Really thanks for your time
Old 11-13-2006, 10:43 AM   #2
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
To extract a tar.gz file, you can use the command 'tar xvzf filename', or use a GUI program such as Ark. If it's a program you want to install, the method varies slightly depending on what the archive contains. Which distro are you using, and what is the program you're trying to install from the archive? There may be a better way of installing, using a package management program.
Old 11-13-2006, 10:45 AM   #3
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
It's a compressed (.gz) archive (.tar), uncompressed and -archived with (if using GNU tar):
tar -xzf filename.tar.gz
You can do this in two steps too:
gunzip filename.tar.gz
tar -xf filename.tar
To install the content, if it's installable (like source code), read the included INSTALL and/or README and/or other doc files (which may be under doc/ or something, too). Typical installing of source code goes like (cd to the source code directory first):
#*# now give root password, or use sudo instead #*#
make install
but it might differ from that, so read INSTALL, README and other documentation first!

Last edited by b0uncer; 11-13-2006 at 10:47 AM.
Old 11-13-2006, 10:49 AM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
First make sure this tarball is in a directory where you have full permissions.
You can extract it with the command "tar xvzf <name>.tar.gz". Then cd into the extracted directory. Check for a README and an INSTALL file. Be sure to read them through. Most likely there will be a "configure" file.
If so, the normal process is:
make install

However, there may be a "make test" or an option to use with "configure" that the README file points out.
Also, often software installed this way will go into the /usr/local hierarchy. Some people prefer it go into the /usr hierarchy, and to do this use "./configure prefix=/usr" instead.


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 to extract tar.gz file ???/ wahaha Linux - Software 6 10-27-2007 08:33 AM
can not extract the tar.gz file sharad durgawad Linux - Software 3 10-05-2005 02:41 AM
How to extract a tar.gz file? deWin Linux - Newbie 3 11-10-2004 11:24 AM
Gentoo - Can't Extract Tar file quintar_51 Linux - Distributions 4 11-11-2003 07:32 AM
extract and locating tar.gz file... zagreb Linux - Newbie 2 03-02-2003 02:23 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:17 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
Open Source Consulting | Domain Registration