这是一个常见的问题,当解压缩(阅读:“双击打开”)时,某些.zip
文件会导致大小相似的.cpgz
文件。但是您希望使用解压缩的文件或文件夹。
OS X中的默认解压缩程序是“ / System / Library / CoreServices / Archive Utility.app”
当您尝试在终端(/usr/bin/unzip
)中解压缩时,会看到以下内容:
$ unzip SE.zip
Archive: SE.zip
warning [SE.zip]: zipfile claims to be last disk of a multi-part archive;
attempting to process anyway, assuming all parts have been concatenated
together in order. Expect "errors" and warnings...true multi-part support
doesn't exist yet (coming soon).
error [SE.zip]: missing 8256083459 bytes in zipfile
(attempting to process anyway)
error [SE.zip]: attempt to seek before beginning of zipfile
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
我正在运行Mavericks 10.9.5,并且unzip -v
了解到我们在5.52版上:
$ unzip -v
UnZip 5.52 of 28 February 2005, by Info-ZIP. Maintained by C. Spieler. Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.
...
有趣的是,相同的“腐败” zip文件在我的CentOS系统上提取得很好。没有错误,文件似乎正常。我的CentOS系统运行6.00版本的解压缩:
$ unzip -v
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.
...
我的问题:如何将我的版本更新unzip
为6.00或更高版本?
和相关的问题:我的OS X新版本解压缩还会对默认的解压缩“ Archive Utility.app”产生影响吗?
ps。我更喜欢使用像brew
上面这样从源代码编译的包管理器。brew install unzip
结果是:Error: No available formula for unzip