Results 1 to 17 of 17
  1. #1
    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.

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

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

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

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

  6. #6
    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:

  7. #7
    Join Date
    Aug 2002
    Location
    here
    Posts
    1,566
    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,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:
    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,306
    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,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.
    Read back

  11. #11
    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.

  12. #12
    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?

  13. #13
    Join Date
    Jul 2002
    Location
    UK
    Posts
    2,027
    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,306
    Thanks, = )

  16. #16
    Join Date
    Oct 2003
    Location
    Orlando, FL
    Posts
    245
    That was way overkill for such a simple thing

  17. #17
    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.


Posting Permissions

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