2 .\" Copyright (c) 2007-2008 Dag-Erling Coïdan Smørgrav
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .Nd extract files from a ZIP archive
42 The following options are available:
45 When extracting a text file, convert DOS-style line endings to
46 Unix-style line endings.
48 Extract files into the specified directory rather than the current
51 Ignore directories stored in the zipfile; instead, extract all files
52 directly into the extraction directory.
54 Convert the names of the extracted files and directories to lowercase.
56 List, rather than extract, the contents of the zipfile.
59 When extacting a file from the zipfile, if a file with the same name
60 already exists on disk, the file is silently skipped.
63 When extacting a file from the zipfile, if a file with the same name
64 already exists on disk, the existing file is replaced with the file
67 Quiet: print less information while extracting.
69 Test: do not extract anything, but verify the checksum of every file
73 When extacting a file from the zipfile, if a file with the same name
74 already exists on disk, the existing file is replaced with the file
75 from the zipfile if and only if the latter is newer than the former.
76 Otherwise, the file is silently skipped.
88 environment variable is defined, the
90 command-line option has no effect, and additional debugging
91 information will be printed to
96 utility aims to be sufficiently compatible with other implementations
97 to serve as a drop-in replacement in the context of the
100 No attempt has been made to replicate functionality which is not
101 required for that purpose.
103 For compatibility reasons, command-line options will be recognized if
104 they are listed not only before but also after the name of the
109 option should only affect files which are marked as text files in the
110 zipfile's central directory.
113 library reads zipfiles sequentially, and does not use the central
114 directory, that information is not available to the
119 utility will assume that a file is a text file if no non-ASCII
120 characters are present within the first block of data decompressed for
122 If non-ASCII characters appear in subsequent blocks of data, a warning
127 utility is only able to process ZIP archives handled by
129 Depending on the installed version of
131 this may or may not include self-extracting archives.
135 utility currently does not support asking the user whether to
136 overwrite or skip a file that already exists on disk.
137 To be on the safe side, it will fail if it encounters a file that
138 already exists and neither the
142 command line option was specified.
153 utility and this manual page were written by
154 .An Dag-Erling Sm\(/orgrav Aq des@FreeBSD.org .
158 .An Tim Kientzle Aq kientzle@FreeBSD.org .