Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    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.

  2. #2
    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. #3
    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

  4. #4
    Join Date
    Aug 2002
    Location
    here
    Posts
    1,538
    gzip -d filename
    tar -xvf filename

  5. #5
    Join Date
    May 2003
    Posts
    598
    tar -zxvf should do the same thing, if I'm not mistaken

  6. #6
    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. #7
    Join Date
    Aug 2002
    Location
    here
    Posts
    1,538
    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. #8
    Join Date
    Aug 2002
    Location
    here
    Posts
    1,538
    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. #9
    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. #10
    Join Date
    Aug 2002
    Location
    here
    Posts
    1,538
    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. #11
    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. #12
    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. #13
    Join Date
    Jul 2002
    Location
    UK
    Posts
    2,026
    File looks corrupt to me...
    Gone.

  14. #14
    No, your un-gzipping an already un-gzipped file

    Drop the z from the params with the produced tar.

  15. #15
    Join Date
    Sep 2003
    Posts
    1,305
    Thanks, = )

Page 1 of 2 12 LastLast

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •