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 06-10-2001, 10:01 PM   #1
Registered: Jun 2001
Location: miami
Distribution: mandrake
Posts: 126

Rep: Reputation: 15

how can I extract and install a file that come in format of tar and gz
Old 06-10-2001, 10:09 PM   #2
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Originally posted by athenerx
how can I extract and install a file that come in format of tar and gz
I cheat
 tar -xvzf yourfile.tar.gz
Annoyed by those looonng cryptic names like 'mysql-2.3.9-alpha-i386.tar.gz'? Autocomplete it with the <TAB> key.
tar -xvzf mysql<TAB>
now that the file is extracted, cd to the folder and read the README and INSTALL files.

Old 06-13-2001, 02:20 PM   #3
LQ Newbie
Registered: May 2001
Posts: 7

Rep: Reputation: 0
hmmm... I've been using

gunzip < filename.tar.gz | tar -xvf

to extract the files to my current location... maybe I've been doing things the hard way.
Old 06-13-2001, 04:17 PM   #4
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Originally posted by mcleodnine
I cheat
 tar -xvzf yourfile.tar.gz
I think that the option z must be first, like this tar -zxvf yourfile.tar.gz.
I have sometimes had trouble when z isn't the first option.


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
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
how to install and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 09:09 PM
How do you install tar/gz files, and rpm files? Fear58 Linux - Software 6 02-14-2004 05:35 PM
cant install .bin files, tar.gz files or anyother format!!! madskillz Linux - Newbie 4 10-05-2003 11:28 AM
Building RPM files from TAR files parle Linux - Software 3 05-06-2002 12:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration