Results 1 to 8 of 8

Thread: What is a tgz file.

  1. #1

    What is a tgz file.

    yeah a lot of you are going to criticize me about being a newbie but oh well maybe there is one nice person out that who can tell me what a tgz file is.

    Thank you anyways

  2. #2
    Senior Member roswell1329's Avatar
    Join Date
    Jan 2002
    Posts
    670
    A .tgz file is a zipped tarball. Basically, take a .tar file (which is a collection of files all stuck together), then compress it (with gzip or compress). You'll also see the extension .tar.gz.
    /* You are not expected to understand this. */

  3. #3
    Thank You very much.

  4. #4
    Senior Member
    Join Date
    Nov 2002
    Posts
    339
    murder dont feel dumb or what ever i jumped right in to linux and got a handful and i wondered the exact same thing, so its cool, you will learn its all trial and error man. dont take it to heart, i mean, nobody was born a kevin mitnick....right?take it easy.

    __________________
    "Just because I dont know it, don't assume I can't understand it". -me
    Don\'t be a bitch! Use Slackware.

  5. #5
    Senior Member
    Join Date
    Jul 2002
    Posts
    339
    Basically, take a .tar file (which is a collection of files all stuck together), then compress it (with gzip or compress). You'll also see the extension .tar.gz.
    Correction. If you compress it with gzip or gunzip, you'll see the extension .tar.gz. BUT if you compress it with compress, you'll get .tar.Z.

    Addition. To extract the files compressed in .tar.gz :
    gzip -dc filename.tar.gz | tar xvf -

    To extract the files compressed in .tar.Z :
    zcat filename.tar.Z | tar xvf -

    There is also a version of zcat that can uncompress gzipped files, and if that's the version you're using, you can also extract the files compressed in .tar.gz :
    zcat filename.tar.gz | tar xvf -

    Note. compress/uncompress, gzip and zcat are available on many platforms, not only *nix. Just search google. Happy learning

    Peace always,
    <jdenny>
    Always listen to experts. They\'ll tell you what can\'t be done and why. Then go and do it. -- Robert Heinlein
    I\'m basically a very lazy person who likes to get credit for things other people actually do. -- Linus Torvalds


  6. #6
    Senior Member roswell1329's Avatar
    Join Date
    Jan 2002
    Posts
    670
    Originally posted here by jdenny


    Correction. If you compress it with gzip or gunzip, you'll see the extension .tar.gz. BUT if you compress it with compress, you'll get .tar.Z.

    Addition. To extract the files compressed in .tar.gz :
    gzip -dc filename.tar.gz | tar xvf -

    To extract the files compressed in .tar.Z :
    zcat filename.tar.Z | tar xvf -

    There is also a version of zcat that can uncompress gzipped files, and if that's the version you're using, you can also extract the files compressed in .tar.gz :
    zcat filename.tar.gz | tar xvf -

    Note. compress/uncompress, gzip and zcat are available on many platforms, not only *nix. Just search google. Happy learning

    Peace always,
    <jdenny>
    Hee hee....my turn.

    Addition:

    You need only use tar to deal with compressed OR gzipped tarballs:

    To extract the files compressed in .tar.Z:
    tar xZvf filename.tar.Z

    To extract the file compressed in .tar.gz:
    tar xzvf filename.tar.gz

    Thanks for the correction, jdenny.
    /* You are not expected to understand this. */

  7. #7
    Leftie Linux Lover the_JinX's Avatar
    Join Date
    Nov 2001
    Location
    Beverwijk Netherlands
    Posts
    2,534
    then there is always bzip2..

    the convention (nowadays) is to use j for the bzip2's..

    so that'd be tar xjvf filename.tar.bz2 or .tbz
    ASCII stupid question, get a stupid ANSI.
    When in Russia, pet a PETSCII.

    Get your ass over to SLAYRadio the best station for C64 Remixes !

  8. #8
    Senior Member roswell1329's Avatar
    Join Date
    Jan 2002
    Posts
    670
    Whoa! Cool, JinX. I didn't know about that one.

    One more thing about .tgz: Many files of this type are Slackware packages. You can use installpkg, removepkg, upgradepkg, makepkg, and explodepkg if you run Slackware.
    /* You are not expected to understand this. */

Posting Permissions

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