/ Osx

Unzipping massive files on OSX

OSX Snow Leopard has a command line zip/unzip utility…

Today I needed to unzip a MASSIVE (10GB) zip file (for Adobe LiveCycle - but that’s another story)… and got this response:

unzip LiveCycleES2.5-0.0.5.zip 
Archive:  LiveCycleES2.5-0.0.5.zip
skipping: LiveCycleES2.5-0.0.5/LiveCycleES2.5.x86_64-0.0.5.vmdk  need PK compat. v4.5 (can do v2.1)
creating: LiveCycleES2.5-0.0.5/
inflating: LiveCycleES2.5-0.0.5/LiveCycleES2.5.x86_64-0.0.5.vmx 

So what’s PK compat. v4.5 ? The standard zip libraries don’t let you unzip really big files. The PKZip libraries have evolved with myriad different versions and capabilities - including (in 4.5) the addition of Zip64 - with support for huge (>4.5 GB) files.

To get it to work, we need p7zip the Linux/Unix port of the 7-zip libraries.

I use homebrew - and you should too.

brew install p7zip

then use the 7z utility (with a magic ‘x’ for extract like so:

7z x LiveCycleES2.5-0.0.5.zip

…and we’re cookin with gas.