Results 1 to 17 of 17
Thread: How do I untar a .tgz
-
06-21-2004, 03:21 PM #1Web Hosting Master
- Join Date
- Sep 2003
- Posts
- 1,306
How do I untar a .tgz
Question is in topic, don't tell me to hit google. I found bloody nothing on the subject.
-
06-21-2004, 03:32 PM #2Web Hosting Master
- Join Date
- May 2003
- Posts
- 599
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
-
06-21-2004, 03:37 PM #3Web Hosting Master
- Join Date
- Sep 2003
- Posts
- 1,306
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
-
06-21-2004, 03:41 PM #4Web Hosting Master
- Join Date
- Aug 2002
- Location
- here
- Posts
- 1,566
gzip -d filename
tar -xvf filename
-
06-21-2004, 03:43 PM #5Web Hosting Master
- Join Date
- May 2003
- Posts
- 599
tar -zxvf should do the same thing, if I'm not mistaken
-
06-21-2004, 03:46 PM #6Web Hosting Master
- Join Date
- Sep 2003
- Posts
- 1,306
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:
-
06-21-2004, 03:46 PM #7Web Hosting Master
- Join Date
- Aug 2002
- Location
- here
- Posts
- 1,566
tar -zxvf should do the same thing, if I'm not mistaken
I dont know why I do it the other way. I just like to type more I guess.
-
06-21-2004, 03:48 PM #8Web Hosting Master
- Join Date
- Aug 2002
- Location
- here
- Posts
- 1,566
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:
You have to cd to your directory that was just untared.
-
06-21-2004, 03:52 PM #9Web Hosting Master
- Join Date
- Sep 2003
- Posts
- 1,306
That's not a dir mate. However, it's a different type or archive file, that I still can't unarchive.
-
06-21-2004, 03:56 PM #10Web Hosting Master
- Join Date
- Aug 2002
- Location
- here
- Posts
- 1,566
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.
-
06-21-2004, 04:02 PM #11Web Hosting Master
- Join Date
- Sep 2003
- Posts
- 1,306
-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.
-
06-21-2004, 04:11 PM #12Predatory Poster
- Join Date
- Jul 2003
- Location
- Goleta, CA
- Posts
- 5,566
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?
-
06-21-2004, 04:19 PM #13Web Hosting Master
- Join Date
- Jul 2002
- Location
- UK
- Posts
- 2,027
File looks corrupt to me...
Gone.
-
06-21-2004, 04:24 PM #14Web Hosting Guru
- Join Date
- May 2003
- Posts
- 252
No, your un-gzipping an already un-gzipped file
Drop the z from the params with the produced tar.
-
06-21-2004, 04:28 PM #15Web Hosting Master
- Join Date
- Sep 2003
- Posts
- 1,306
Thanks, = )
-
06-21-2004, 04:53 PM #16Junior Guru
- Join Date
- Oct 2003
- Location
- Orlando, FL
- Posts
- 245
That was way overkill for such a simple thing
-
06-21-2004, 05:09 PM #17working on it
- Join Date
- Nov 2002
- Location
- paradise
- Posts
- 6,220
Tar also stands for TarMacademised [aka tarmac]. A method used for metalling roads using a petroleum byproduct. Its cheaper than concrete layering of the road surface but it is sticky in hot summer and pretty diffucult to untar if it gets under your shoes and in your hair.