zipcmp(1)

zipcmp1

Compare contents of zip archives

Usage

zipcmp [-ChipqsTtVv] archive1 archive2

Overview

zipcmp compares the zip archives or directories archive1 and archive2 and checks if they contain the same files, comparing their names, uncompressed sizes, and CRCs. File order and compressed size differences are ignored.

Supported options:

-C

Check consistency of archives. Results in an error if archive is inconsistent or not valid according to the zip specification.

-h

Display a short help message and exit.

-i

Compare names ignoring case distinctions.

-p

Enable paranoid checks. Compares extra fields, comments, and other meta data. (Automatically disabled if one of the archives is a directory.) These checks are skipped for files where the data differs.

-q

Quiet mode. Compare -v.

-s

Print a summary of how many files where added and removed.

-T

Additionally compare the time stamps of the entries.

-t

Test zip files by comparing the contents to their checksums.

-V

Display version information and exit.

-v

Verbose mode. Print details about differences to stdout. (This is the default.)

Exit status

zipcmp exits 0 if the two archives contain the same files, 1 if they differ, and >1 if an error occurred.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0–7
  3. 8
  4. 9
  5. 10
  6. 11–12
  7. 13–Arch

-C since Debian 13 (Trixie); -T since Debian 13 (Trixie); -p since Debian 9 (Stretch); -s since Debian 13 (Trixie); -t since Debian 9 (Stretch).

History

zipcmp was added in libzip 0.6.

Authors

Dieter Baron ⟨[email protected]⟩ and Thomas Klausner ⟨[email protected]⟩

From libzip 1.11.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.