LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 01-18-2004, 08:20 PM   #1
buccaneer
LQ Newbie
 
Registered: Jan 2004
Location: California
Distribution: slackware 10
Posts: 3

Rep: Reputation: 0
Question decompress tar gz files?


Hi, this is my first post ever in regards to linux so please have patience with me. I recently got the notion to try linux after seeing a episode of tech tv. I have spent the last week getting windows xp and Mandrake 9.2 to coexist on the same drive and i have finnally succeded in that area. It would have been a lot easier if compaq had just given me an xp disk and not one of those system restore disks that reformatts the hard drive automatically every time i want to install it. If anyone knows how to extract windows xp from a compaq system restore disk i would appreciate the info. I have gotten everything configured and things seem to work ok but i have run into trouble trying to get macromedia flash player installed to my web browser. I can follow the instructions from the readme of the player alright but i dont know how to uncompress a tar gz file. I have tried to use ark and the file roller but the instructions tell me that i have to install it from a terminal. I can get to the terminal ok and know how to navigate in it but i dont know the commands to get the file uncompressed. once i do ill be ok.

On a side note, i have heard a lot of people saying that linux is hard to learn and use for the beginner. I can agree with that. Over the past week i knew nothing about formatting a hard drive, burning iso's, and installing linux but now i can do it in my sleep. On the other hand the more i play around and experiment in linux the more i like it. Now i see why people say that it is stable and mostly reliable. Personally i think people may be afraid of the learning curve that happens with the switch from windows. Dont fear the reaper!

Thank you for your time in reading my post.

This website was instrumental in my success in getting Mandrake 9.2 up and running with Windows XP Keep up the good work!
 
Old 01-18-2004, 08:25 PM   #2
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
First up, welcome to LinuxQuestions.org Secondly, the usual command to extract files from a tar.gz is
Code:
tar -zxvf <filename>.tar.gz
Do this from a console and it will extract the tarball to the current directory. I hope this helps a bit

Baldrick
 
Old 01-18-2004, 08:33 PM   #3
bluesman2333
Member
 
Registered: Dec 2003
Location: Phoenix, Az.
Distribution: Xubuntu Edgy
Posts: 330

Rep: Reputation: 30
You can read the instructions that come with the software you are wanting to use. For instance many web sites will have some sort of FAQ or release notes. Download to a directory such as /user/downloads or something. start another session as root. Then you generally (in the console) tar -zxvf filename.tar.gz paying attention to case. Then, cd to the directory you need to compile the program in then ./configure then make then make install then exit. Then you can run the program from the command line in the usr session.
 
Old 01-18-2004, 09:11 PM   #4
buccaneer
LQ Newbie
 
Registered: Jan 2004
Location: California
Distribution: slackware 10
Posts: 3

Original Poster
Rep: Reputation: 0
Re decompress tar gz files

Thanks for the help bluesman2333 and baldrick 65! I got it done and it works like a champ.
 
Old 01-19-2004, 01:36 AM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
When using the tar command given above, make sure that the -f option is the last one on the list before the file name. One thing different about the tar command is that the dash before the options is optional.

There are two commands that you will probably use in the future where the command letter does not use a dash but the options do. These are the rar and par commands.
for rar:
rar x -kb filename.rar will extract the files preserving subdirectories. The -kb option will keep broken (partial) files. Adding a dash before the x will not work.
 
Old 01-19-2004, 02:15 AM   #6
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
Quote:
When using the tar command given above, make sure that the -f option is the last one on the list before the file name. One thing different about the tar command is that the dash before the options is optional.
I usually encourage *not* using the hyphen at all since that allows for using the flags in any order, like tar xfvz file.tar.gz or tar zxfv file.tar.gz. That makes it less of a hazzle to remember the different ways to use the command.

Håkan
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 10 02-23-2008 05:40 AM
Can't decompress tar.bz2 (kde theme file) dauphinfay Linux - Software 5 10-24-2005 02:23 PM
Decompress .zip files on AIX system namdn Linux - General 3 07-28-2004 06:43 AM
How do I decompress and desarchive multiple .tar.gz files to a single directory? Baldorg Linux - Software 7 11-27-2003 12:42 PM
How do you decompress files, or run files such as the Netscape 6 Uninstaller in RH7.2 oudent Linux - Newbie 1 11-19-2001 12:11 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration