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 11-13-2006, 10:35 AM   #1
manolakis
Member
 
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
Gethyn
Member
 
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
b0uncer
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):
Code:
tar -xzf filename.tar.gz
You can do this in two steps too:
Code:
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):
Code:
./configure
make
su
#*# 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
jschiwal
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:
./configure
make
su
<password>
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:05 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