Zip large file support in Fedora

Running Fedora 39. Zip seems to be built with large file support:

This is Zip 3.0 (July 5th 2008), by Info-ZIP
Compiled with gcc 13.2.1 20230728 (Red Hat 13.2.1-1) for Unix (Linux ELF) on Sep 18 2023.

Zip special compilation options:
        USE_EF_UT_TIME       (store Universal Time)
        BZIP2_SUPPORT        (bzip2 library version 1.0.8, 13-Jul-2019)
            bzip2 code and library copyright (c) Julian R Seward
            (See the bzip2 license for terms of use)
        SYMLINK_SUPPORT      (symbolic links supported)
        LARGE_FILE_SUPPORT   (can read and write large files on file system)
        ZIP64_SUPPORT        (use Zip64 to store large files in archives)
        UNICODE_SUPPORT      (store and read UTF-8 Unicode paths)
... etc

Yet a zip archive operation fails when the archize size reaches 4.1G. AFAIK zip should be able to handle this.

adding: Documents/xxx/xxx/xxx...
zip I/O error: File too large
zip error: Output file write failure (write error on zip file)

Is this a bug or a feature?

Not sure if this can help, but found it roaming around Info-Zips site,
total size of archieve

“While the only theoretical limit on the size of an archive is given by (65,536 files x 4 GB each), realistically UnZip’s random-access operation and (partial) dependence on the stored compressed-size values limits the total size to something in the neighborhood of 2 to 4 GB. This restriction may be relaxed in a future release. (On 64-bit IRIX with the native compiler, the options “-mips4 -64” or “-mips4 -64 -ipa” [for both compiling and linking] may help. “-ipa” is reported to generate incorrect code sometimes, however.)”

1 Like