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

NAME

4     zipcmp — compare contents of zip archives
5

SYNOPSIS

7     zipcmp [-ChipqstVv] 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     -s   Print a summary of how many files where added and removed.
32
33     -t   Test zip files by comparing the contents to their checksums.
34
35     -V   Display version information and exit.
36
37     -v   Verbose mode.  Print details about differences to stdout.  (This is
38          the default.)
39

EXIT STATUS

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

SEE ALSO

45     zipmerge(1), ziptool(1), libzip(3)
46

HISTORY

48     zipcmp was added in libzip 0.6.
49

AUTHORS

51     Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
52
53BSD                             March 19, 2022                             BSD
Impressum