How To Unzip Large Files

Get (and unzip) the source code for unzip from your SRPMs or http://www.info-zip.org/
$ cd unzip-5.52
$ vi unix/Makefile

Find the section begining
# Linux on 386 platform, using the assembler replacement for crc32.c. (-O4 and
# -fno-strength-reduce have virtually no effect beyond -O3.  Add "-m486
# -malign-functions=2 -malign-jumps=2 -malign-loops=2" for Pentium [Pro]
# systems.)
linux:          unix_make

Find the line
		 CF="-O3 -Wall -I. -DASM_CRC $(LOC)"\

and replace it with
		 CF="-O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(LOC)"\

save Makefile and re-make unzip
$ make -f unix/Makefile linux

Test and once you are happy then you could replace your existing unzip with the new one that does unzip files > 2G !

Find out where your existing unzip is
$ which unzip
/usr/bin/unzip

overwrite it with your new one
# cp unzip /usr/bin/unzip



REFERRERS
LargeFiles
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki