Results 1 to 5 of 5

Thread: Tar?

  1. #1

    Tar?

    Ok, in redhat how do i unzip a .tar.gz file becuase tar -zxvf does not work.

    Any ideas?

    thank you
    Anthony

  2. #2
    Guest

    Re:Tar?

    Unzip? Perhaps you mean decompress. tar.gz files should be uncompressed with 'tar xzf file.tar.gz' if this does not work your file could either be:

    A) Corrupt.
    B) Wrong exntesion.
    C) All off the above.

    What is the error that is printed out on your terminal?

  3. #3

    Re:Tar?

    also try gunzip filename
    and then
    tar -xvf filename

    maybe you don't have zlib installed...

  4. #4

    Re:Tar?

    i¨m not at all sure if this helps, but as i'm getting help from people -i'll try to help a little myself :P (maybe you know all this already...)

    but what i always use is:

    gzip -d "filename"
    tar -xvf "filename"

    -as i understand it -what you have there is a file that has been compressed twice. -once with tar and then once with gzip.

  5. #5
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re:Tar?

    [quote author=slideshow-bob link=board=1;threadid=9541;start=0#msg87056 date=1090683518]
    -as i understand it -what you have there is a file that has been compressed twice. -once with tar and then once with gzip.
    [/quote]
    Yes, correct. But you can just use "xvzf" and skip doing it twice. Z is for gzip format. See "man tar" for more info.

Bookmarks

Posting Permissions

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