You are not logged in.
Pages: 1
I downloaded some files from box.com and they were in a .zip format and gunzip does not work and file says "Zip archive data, at least v2.0 to extract". Am I missing something, or arch is behind with upstream updating, or the upstream development is so much behind Windows that version 2 is widely used on the net but not yet implemented in gzip?
Last edited by doru001 (2013-05-09 11:20:45)
Offline
Have you tried unzip https://www.archlinux.org/packages/?name=unzip ?
Offline
While karol is right, I feel that the 'why' should be explained here too. There are several algorithms to compress data. zip, as is common in the windows ecosystems is not the same as gzip, as is common in the GNU/Linux and OS X ecosystem. Additionally there's bzip2, xz, 7z, rar and more.
gunzip is specifically for decompressing gzipped data, it doesn't try to handle any other formats and so that it cannot decompress a zip archive is not a fault of Archlinux or upstream. unzip, to which karol linked, is the correct™ solution.
Offline
Thank you both, this is just great.
I always find trademarks illogical, especially when it is about standards and not specific code.
.gz is for gunzip and .zip for unzip.
Offline
Also atool is *very* handy. The aunpack command (part of atool) will detect what compression was used and apply the right decompression tool. You'll still need these decompression tools installed, but atool removes a lot of guesswork/investigative work when someone sends you a mystery-compressed file.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I downloaded some files from box.com and they were in a .zip format and gunzip does not work and file says "Zip archive data, at least v2.0 to extract". Am I missing something, or arch is behind with upstream updating, or the upstream development is so much behind Windows that version 2 is widely used on the net but not yet implemented in gzip?
Not trying to sound rude but, you really have no idea what you are talking about?
As SidK explained, gzip handles only *.gz files. Do you complain that it doesn't handle *.bz2 or *.xz and so on?
What you need is a frontend like xarchiver, or something like peazip which handles a multitude of formats.
Please do some research before posting.
Offline
doru001 wrote:I downloaded some files from box.com and they were in a .zip format and gunzip does not work and file says "Zip archive data, at least v2.0 to extract". Am I missing something, or arch is behind with upstream updating, or the upstream development is so much behind Windows that version 2 is widely used on the net but not yet implemented in gzip?
Not trying to sound rude but, you really have no idea what you are talking about?
As SidK explained, gzip handles only *.gz files. Do you complain that it doesn't handle *.bz2 or *.xz and so on?
What you need is a frontend like xarchiver, or something like peazip which handles a multitude of formats.
Please do some research before posting.
I thought that gzip is gnu for microsoft zip and that it handles .zip files. No wiki pages for zip or gzip. pacman -Ss zip returns 36 lines and I did not notice the unzip utility, especially as I did not expect it to be there. file said that I need version 2 but it did not specify the utility of which I need version 2. (It said "Zip file", which did not point me to the zip utility.) A fast search on google did not help, either. Nothing on bbs. Now, please tell me two or three ways that would have allowed me to find the answer without knowing it in advance.
Offline
Also atool is *very* handy. The aunpack command (part of atool) will detect what compression was used and apply the right decompression tool. You'll still need these decompression tools installed, but atool removes a lot of guesswork/investigative work when someone sends you a mystery-compressed file.
Thanks, I made a note on this.
Offline
Now, please tell me two or three ways that would have allowed me to find the answer without knowing it in advance.
Googling "gunzip zip file" gives me a similar question (+answer) on another forum and the wikipedia page for gzip, which says:
gzip is not to be confused with the ZIP archive format, which also uses DEFLATE.
So while your initial confusion is understandable, x33a is not being completely unreasonable; it's not that hard to find out.
Offline
I thought that gzip is gnu for microsoft zip and that it handles .zip files.
That's fine, misconceptions can happen with anyone.
No wiki pages for zip or gzip.
https://en.wikipedia.org/wiki/Gzip (Arch Wiki is not the only wiki you should refer to ).
pacman -Ss zip returns 36 lines and I did not notice the unzip utility, especially as I did not expect it to be there.
This is where you should have paid attention. Not noticing the package is something pacman cannot help you with.
Also, you can use regex like
$ pacman -Ss ^zip
or
$ pacman -Ss zip$
These well help trim the results down.
file said that I need version 2 but it did not specify the utility of which I need version 2. (It said "Zip file", which did not point me to the zip utility.)
That's not file's job, as there can many software which can be used for the same purpose. It should (and does) only tell the format.
A fast search on google did not help, either. Nothing on bbs.
https://encrypted.google.com/search?hl= … ip%20files
Now, please tell me two or three ways that would have allowed me to find the answer without knowing it in advance.
I guess that should satisfy you.
Please don't mind, I am just trying to point out the lack of proper research on your part.
Offline
I should have searched 'unzip zip on linux'. Indeed, file only cares about the compression standard, not even about libraries' versions. I hoped that I would get some tip from it, anyway. The problem is that I was missing the big picture, and I got lost.
Offline
Pages: 1