MinGW tar compression problem

Posted by Shiftbit on Super User See other posts from Super User or by Shiftbit
Published on 2010-03-27T04:48:12Z Indexed on 2010/03/27 4:53 UTC
Read the original article Hit count: 821

Filed under:
|
|

I am unable to get the Mingw tar to work with compress files. It does not filter through the proper compression utility. However, tar will work if I manually uncompress the file first. I have tried in both the MSYS shell and Windows cmd. Has anyone had this problem or is it a MinGW bug?

For example, this does not work:

C:\Users\home\Desktop>tar -tzf wdiff-0.5.tar.gz
tar: Cannot use compressed or remote archives
tar: Error is not recoverable: exiting now

C:\Users\home\Desktop>tar -t -Zgzip -f wdiff-0.5.tar.gz
tar: Cannot use compressed or remote archives
tar: Error is not recoverable: exiting now

C:\Users\home\Desktop>tar -tf wdiff-0.5.tar.gz
tar: Hmm, this doesn't look like a tar archive
tar: Skipping to next file header
tar: Only read 6732 bytes from archive wdiff-0.5.tar.gz
tar: Error is not recoverable: exiting now

However, this works:

gzip -d wdiff-0.5.tar.gz
tar -tf wdiff-0.5.tar

© Super User or respective owner

Related posts about Windows

Related posts about mingw