3 <!-- This is an automatically generated file. Do not edit.
4 zipcmp.mdoc -- compare zip archives
5 Copyright (C) 2003-2022 Dieter Baron and Thomas Klausner
7 This file is part of libzip, a library to manipulate ZIP archives.
8 The authors can be contacted at <libzip@nih.at>
10 Redistribution and use in source and binary forms, with or without
11 modification, are permitted provided that the following conditions
13 1. Redistributions of source code must retain the above copyright
14 notice, this list of conditions and the following disclaimer.
15 2. Redistributions in binary form must reproduce the above copyright
16 notice, this list of conditions and the following disclaimer in
17 the documentation and/or other materials provided with the
19 3. The names of the authors may not be used to endorse or promote
20 products derived from this software without specific prior
23 THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
24 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
27 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
29 GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
31 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
33 IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 <meta charset="utf-8"/>
37 <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/>
38 <title>ZIPCMP(1)</title>
43 <td class="head-ltitle">ZIPCMP(1)</td>
44 <td class="head-vol">General Commands Manual</td>
45 <td class="head-rtitle">ZIPCMP(1)</td>
48 <div class="manual-text">
50 <h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
51 <code class="Nm">zipcmp</code> —
52 <div class="Nd">compare contents of zip archives</div>
55 <h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
58 <td><code class="Nm">zipcmp</code></td>
59 <td>[<code class="Fl">-ChipqstVv</code>] <var class="Ar">archive1
65 <h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
66 <code class="Nm">zipcmp</code> compares the zip archives or directories
67 <var class="Ar">archive1</var> and <var class="Ar">archive2</var> and checks
68 if they contain the same files, comparing their names, uncompressed sizes, and
69 CRCs. File order and compressed size differences are ignored.
70 <p class="Pp">Supported options:</p>
72 <dt><a class="permalink" href="#C"><code class="Fl" id="C">-C</code></a></dt>
73 <dd>Check consistency of archives. Results in an error if archive is
74 inconsistent or not valid according to the zip specification.</dd>
75 <dt><a class="permalink" href="#h"><code class="Fl" id="h">-h</code></a></dt>
76 <dd>Display a short help message and exit.</dd>
77 <dt><a class="permalink" href="#i"><code class="Fl" id="i">-i</code></a></dt>
78 <dd>Compare names ignoring case distinctions.</dd>
79 <dt><a class="permalink" href="#p"><code class="Fl" id="p">-p</code></a></dt>
80 <dd>Enable paranoid checks. Compares extra fields, comments, and other meta
81 data. (Automatically disabled if one of the archives is a directory.)
82 These checks are skipped for files where the data differs.</dd>
83 <dt><a class="permalink" href="#q"><code class="Fl" id="q">-q</code></a></dt>
84 <dd>Quiet mode. Compare <code class="Fl">-v</code>.</dd>
85 <dt><a class="permalink" href="#s"><code class="Fl" id="s">-s</code></a></dt>
86 <dd>Print a summary of how many files where added and removed.</dd>
87 <dt><a class="permalink" href="#t"><code class="Fl" id="t">-t</code></a></dt>
88 <dd>Test zip files by comparing the contents to their checksums.</dd>
89 <dt><a class="permalink" href="#V"><code class="Fl" id="V">-V</code></a></dt>
90 <dd>Display version information and exit.</dd>
91 <dt><a class="permalink" href="#v"><code class="Fl" id="v">-v</code></a></dt>
92 <dd>Verbose mode. Print details about differences to stdout. (This is the
97 <h1 class="Sh" id="EXIT_STATUS"><a class="permalink" href="#EXIT_STATUS">EXIT
99 <code class="Nm">zipcmp</code> exits 0 if the two archives contain the same
100 files, 1 if they differ, and >1 if an error occurred.
103 <h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
105 <a class="Xr" href="zipmerge.html">zipmerge(1)</a>,
106 <a class="Xr" href="ziptool.html">ziptool(1)</a>,
107 <a class="Xr" href="libzip.html">libzip(3)</a>
110 <h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
111 <code class="Nm">zipcmp</code> was added in libzip 0.6.
114 <h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
115 <span class="An">Dieter Baron</span>
116 <<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>> and
117 <span class="An">Thomas Klausner</span>
118 <<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>>
123 <td class="foot-date">March 19, 2022</td>
124 <td class="foot-os">NiH</td>