[PLUG] .gz file extraction
Richard Langis
richard.langis at sun.com
Mon Aug 26 20:35:26 UTC 2002
I've seen this myself - sometimes people rename them to .gz even though
they're a tar archive ONLY, or vice-versa.
Instead of running them through file or whatnot, I just try to either
gunzip or untar them individually. So far, it's worked 100% of the
time. YMMV.
-R
E. Rogan Creswick wrote:
> "file" is a very good tool for this sort of thing, it will tell you what a
> file is, regardless of the extension (within the capabilities of it's
> database).
>
> $ file testFile.tar.gz
> testFile.tar.gz: gzip compressed data, deflated, last modified: Sat Nov 10
> 15:23:37 2001, max compression, os: Unix
>
> $ gunzip testFile.tar.gz
>
> $ file testFile.tar
> testFile.tar: GNU tar archive
>
> $ mv testFile.tar tstfile
> `testFile.tar' -> `tstfile'
>
> $ file tstfile
> tstfile: GNU tar archive
>
>
> -Rogan
>
> On Mon, 26 Aug 2002, Michael Montagne wrote:
>
>
>>Yeah, that's what I needed...tar. But the extension of the file I
>>downloaded was not .tat.gz. It was just .gz. The only clue is the file
>>name I guess.
>>
>>
>>
>>>On 26/08/02, from the brain of Sean Whitney tumbled:
>>
>>>I am assuming here but if the file you downloaded is a .tar.gz file, try this
>>>
>>>tar xvfz file.tar.gz
>>>
>>>This should gunzip and untar it into the appropriate directory structure that
>>>you are expecting.
>>>
>>>If it's already gunzipped. Try tar xvf file.tar and it should create the
>>>filestructure and files you are expecting.
>>>
>>>Sean
>>>
>>>On Monday 26 August 2002 12:41, you wrote:
>>>
>>>>I downloaded a bunch of source code the other day that came as a .gz
>>>>file. When I extract it with "gunzip filename", it creates a huge file.
>>>>But, it is supposed to be a directory with files in it. If I use "ark",
>>>>the KDE archiver, I can extract them correctly.
>>>>But I don't want to rely on KDE. I should be able to tell (or at least
>>>>extract to the correct format)using standard tools. What am I doing
>>>>wrong?
>>>>This is the URL of the site where I downloaded the .gz file.
>>>>
>>>>http://sourceforge.net/project/showfiles.php?group_id=30996&release_id=1048
>>>>23
>>>
>>>_______________________________________________
>>>PLUG mailing list
>>>PLUG at lists.pdxlinux.org
>>>http://lists.pdxlinux.org/mailman/listinfo/plug
>>
>>--
>> Michael Montagne [montagne at boora.com] 503.226.1575
>>--
>>
>>_______________________________________________
>>PLUG mailing list
>>PLUG at lists.pdxlinux.org
>>http://lists.pdxlinux.org/mailman/listinfo/plug
>>
>
>
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
More information about the PLUG
mailing list