LinuxQuestions.org
Review your favorite Linux distribution.
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-10-2001, 09:01 PM   #1
athenerx
Member
 
Registered: Jun 2001
Location: miami
Distribution: mandrake
Posts: 126

Rep: Reputation: 15
Post


how can I extract and install a file that come in format of tar and gz
 
Old 06-10-2001, 09:09 PM   #2
mcleodnine
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
Quote:
Originally posted by athenerx
how can I extract and install a file that come in format of tar and gz
I cheat
Code:
 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.
Code:
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, 01:20 PM   #3
Rackemup
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, 03:17 PM   #4
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Quote:
Originally posted by mcleodnine
I cheat
Code:
 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.
 
  


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

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

All times are GMT -5. The time now is 11:08 PM.

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