1ZIPCMP(1)                 BSD General Commands Manual                ZIPCMP(1)
2

NAME

4     zipcmp — compare contents of zip archives
5

SYNOPSIS

7     zipcmp [-ChipqtVv] archive1 archive2
8

DESCRIPTION

10     zipcmp compares the zip archives or directories archive1 and archive2 and
11     checks if they contain the same files, comparing their names, uncom‐
12     pressed sizes, and CRCs.  File order and compressed size differences are
13     ignored.
14
15     Supported options:
16
17     -C   Check consistency of archives.  Results in an error if archive is
18          inconsistent or not valid according to the zip specification.
19
20     -h   Display a short help message and exit.
21
22     -i   Compare names ignoring case distinctions.
23
24     -p   Enable paranoid checks.  Compares extra fields, comments, and other
25          meta data.  (Automatically disabled if one of the archives is a di‐
26          rectory.)  These checks are skipped for files where the data dif‐
27          fers.
28
29     -q   Quiet mode.  Compare -v.
30
31     -t   Test zip files by comparing the contents to their checksums.
32
33     -V   Display version information and exit.
34
35     -v   Verbose mode.  Print details about differences to stdout.  (This is
36          the default.)
37

EXIT STATUS

39     zipcmp exits 0 if the two archives contain the same files, 1 if they dif‐
40     fer, and >1 if an error occurred.
41

SEE ALSO

43     zipmerge(1), ziptool(1), libzip(3)
44

HISTORY

46     zipcmp was added in libzip 0.6.
47

AUTHORS

49     Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
50
51BSD                             March 17, 2021                             BSD
Impressum