動かざることバグの如し

3分経てば忘れそうなことをメモします

macでデカいzipが解凍できない

症状

数GB規模の巨大なzipファイルをunzipコマンドで解凍しようとすると失敗する

% unzip 2015-09-24-raspbian-jessie.zip
Archive:  2015-09-24-raspbian-jessie.zip
warning [2015-09-24-raspbian-jessie.zip]:  76 extra bytes at beginning or within zipfile
  (attempting to process anyway)
error [2015-09-24-raspbian-jessie.zip]:  reported length of central directory is
  -76 bytes too long (Atari STZip zipfile?  J.H.Holm ZIPSPLIT 1.1
  zipfile?).  Compensating...
   skipping: 2015-09-24-raspbian-jessie.img  need PK compat. v4.5 (can do v2.1)

note:  didn't find end-of-central-dir signature at end of central dir.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)

解決策1

実はtarコマンドでもzipファイルを解凍できる マジか

tar xvf 2015-09-24-raspbian-jessie.zip

解決策2

このコマンドはMac OS専用っぽい

ditto 2015-09-24-raspbian-jessie.zip