hosted by liquidweb


Go Back   Web Hosting Talk : Other Forums : Web Hosting Lounge : How do I untar a .tgz
Reply

Forum Jump

How do I untar a .tgz

Reply Post New Thread In Web Hosting Lounge Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 06-21-2004, 03:21 PM
Aea Aea is offline
Web Hosting Master
 
Join Date: Sep 2003
Posts: 1,305

How do I untar a .tgz


Question is in topic, don't tell me to hit google. I found bloody nothing on the subject.



Sponsored Links
  #2  
Old 06-21-2004, 03:32 PM
pixd pixd is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 598
In the command line? Try

tar -xvf yourfile

http://www.linuxdevcenter.com/linux/...csp?path=t/tar Might help you learn more.

By the way, you probably don't know how to use google, because I searched for untar .tgz and the first result was:

http://simplythebest.net/info/untar.html

Which tells you the same thing

  #3  
Old 06-21-2004, 03:37 PM
Aea Aea is offline
Web Hosting Master
 
Join Date: Sep 2003
Posts: 1,305
tar -xvf ts-2.1-linux-full.tgz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Error exit delayed from previous errors

Sponsored Links
  #4  
Old 06-21-2004, 03:41 PM
namelayer namelayer is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: here
Posts: 1,538
gzip -d filename
tar -xvf filename

  #5  
Old 06-21-2004, 03:43 PM
pixd pixd is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 598
tar -zxvf should do the same thing, if I'm not mistaken

  #6  
Old 06-21-2004, 03:46 PM
Aea Aea is offline
Web Hosting Master
 
Join Date: Sep 2003
Posts: 1,305
gzip: ts-2.1-linux-full.tgz: decompression OK, trailing garbage ignored
-bash-2.05b$ ls
ts-2.1-linux-full.tar
-bash-2.05b$

Now where did the file go D:

  #7  
Old 06-21-2004, 03:46 PM
namelayer namelayer is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: here
Posts: 1,538
Quote:
tar -zxvf should do the same thing, if I'm not mistaken
Yes it does
I dont know why I do it the other way. I just like to type more I guess.

  #8  
Old 06-21-2004, 03:48 PM
namelayer namelayer is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: here
Posts: 1,538
Quote:
Originally posted by Aea
gzip: ts-2.1-linux-full.tgz: decompression OK, trailing garbage ignored
-bash-2.05b$ ls
ts-2.1-linux-full.tar
-bash-2.05b$

Now where did the file go D:
Lordy, I know you havent searched on google.
You have to cd to your directory that was just untared.

  #9  
Old 06-21-2004, 03:52 PM
Aea Aea is offline
Web Hosting Master
 
Join Date: Sep 2003
Posts: 1,305
That's not a dir mate. However, it's a different type or archive file, that I still can't unarchive.

  #10  
Old 06-21-2004, 03:56 PM
namelayer namelayer is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: here
Posts: 1,538
Quote:
Originally posted by Aea
That's not a dir mate. However, it's a different type or archive file, that I still can't unarchive.
Read back

  #11  
Old 06-21-2004, 04:02 PM
Aea Aea is offline
Web Hosting Master
 
Join Date: Sep 2003
Posts: 1,305
-bash-2.05b$ gzip -d ts-2.1-linux-full.tgz

gzip: ts-2.1-linux-full.tgz: decompression OK, trailing garbage ignored
-bash-2.05b$ ls
ts-2.1-linux-full.tar
-bash-2.05b$
-bash-2.05b$ cd ts-2.1-linux-full.tar
-bash: cd: ts-2.1-linux-full.tar: Not a directory
-bash-2.05b$ ls
ts-2.1-linux-full.tar
-bash-2.05b$ tar -zxvf ts-2.1-linux-full.tar

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors


I should probably ask a mod to close this thread, I don't think I will get anything accomplished other then flames.

  #12  
Old 06-21-2004, 04:11 PM
cywkevin cywkevin is offline
Predatory Poster
 
Join Date: Jul 2003
Location: Goleta, CA
Posts: 5,550
start with the original file and tar -zxvf filename This will get what you want done as it is both a tar file with additional gunzip compression. Hence the addition of the z to run the gunzip query on the file during the decompression process.

__________________
Patron: I'd like my free lunch please.
Cafe Manager: Free lunch? Did you read the fine print stating it was an April Fool's joke.
Patron: I read the same way I listen, I ignore the parts I don't agree with. I'm suing you for false advertising.
Cafe Owner: Is our lawyer still working pro bono?

  #13  
Old 06-21-2004, 04:19 PM
Informity Informity is offline
Web Hosting Master
 
Join Date: Jul 2002
Location: UK
Posts: 2,026
File looks corrupt to me...

__________________
Gone.

  #14  
Old 06-21-2004, 04:24 PM
HG-Owen HG-Owen is offline
Web Hosting Guru
 
Join Date: May 2003
Posts: 251
No, your un-gzipping an already un-gzipped file

Drop the z from the params with the produced tar.

  #15  
Old 06-21-2004, 04:28 PM
Aea Aea is offline
Web Hosting Master
 
Join Date: Sep 2003
Posts: 1,305
Thanks, = )

Reply

Related posts from TheWhir.com
Title Type Date Posted


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?