Back to Chromium

NAME

third_party/libzip/src/man/zipmerge.html

152.0.7957.12.0 KB
Original Source

| ZIPMERGE(1) | General Commands Manual | ZIPMERGE(1) |

NAME

zipmerge — merge zip archives

SYNOPSIS

| zipmerge | [-DhIiSsV] target-zipsource-zip [source-zip ...] |

DESCRIPTION

zipmerge copies files from the source zip archives source-zip to the target zip archive target-zip. By default, files in the source zip archives overwrite existing files of the same name in the target zip archive. By default, compressed files in the source archive are copied directly without recompression, uncompressed files are compressed using the default compression algorithm.

Supported options:

-DIgnore directory components in file name comparisons. This option is slow for archives with many files.-hDisplay a short help message and exit.-IIgnore case in file name comparisons This option is slow for archives with many files.-iAsk before overwriting files. See also -s.-kDo not compress files that were uncompressed in source-zip, otherwise they are compressed with the default compression method.-SDo not overwrite files that have the same name, size, and CRC32 in both the source and target archives.-sWhen -i is given, do not ask before overwriting files that have the same name, size, and CRC32.-VDisplay version information and exit.

EXIT STATUS

zipmerge exits 0 on success and >1 if an error occurred.

SEE ALSO

zipcmp(1), ziptool(1), libzip(3)

HISTORY

zipmerge was added in libzip 0.6.

AUTHORS

Dieter Baron <[email protected]> and Thomas Klausner <[email protected]>

CAVEATS

zipmerge uses one open file descriptor per zip archive. If you need to merge a lot of zip archives, check your shell's file descriptor ulimit and either increase it or run zipmerge multiple times with e.g. 1000 source zip archives each time.

| November 7, 2023 | NiH |