Top Nav

Unzipping archives with large files

The standard unzip utility in RHFC6 was not able to handle the 2+GB zip files that I needed to uncompress.

Tried the solution shown here:

http://www.osde.info/HowToUnzipLargeFiles

which involves changing:

CF=”-O3 -Wall -I. -DASM_CRC $(LOC)”\

To:

CF=”-O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(LOC)”\

In the unix/Makefile

This helps as it lets unzip open the >2GB archive. But some of the files in the archive were larger then 4GB and gave and error like this:

need PK compat. v4.5 (can do v2.1)

Found a page here:

http://www.penlug.org/twiki/bin/view/Main/GigaUnzipping

with the solution which is to use p7zip from:

need PK compat. v4.5 (can do v2.1)