Is it possible to use GZip to create a .zip file? I've been Googling and can't find anything that leads me to believe this is possible
Is it possible to use GZip to create a .zip file? I've been Googling and can't find anything that leads me to believe this is possible
You probably want to use
zip
and notgzip
. This should do it:This is not possible. gzip and (pk)zip use different compression formats, and more significantly, zip also packages multiple files, directories, together in one archive.
The original zip format is the same as:
(note the capital Z uses the compress lib - using the small 'z' would give a gzipped archive which pk/winzip can't understand).
i.e. no, you can't use gzip to create a pkzip file - but I'd be surprised to find a Unix machine which had gzip but not compress.