2 .\" =========================================================================
3 .\" define .EX/.EE (for multiline user-command examples; normal Courier font)
14 .\" =========================================================================
15 .TH UNRAR 1 "18 Feb 2009" unrar
17 unrar \- list, test and extract compressed files from RAR archive
20 \fBunrar\fR command [switches] archive {files | @listfiles} [path_to_extract]
22 .\" =========================================================================
24 \fIunrar\fP is commandline utility to list, test, or extract files from RAR archive.
26 .\" =========================================================================
30 Extract files to current directory
33 List archive [technical [all] format, bare format]
42 Verbosely list archive [technical [all] format, bare format]
45 Extract files with full path
46 .\" =========================================================================
51 Stop switches scanning
54 Disable [enable] file lists
57 Append archive name to destination path
60 Generate archive name using the current date
63 Ignore file attributes
66 Set path inside archive
72 Disable read configuration
75 Convert names to lower case
78 Convert names to upper case
84 Exclude paths from names
87 Expand paths to full including the drive letter
93 Disable messages. c-copyright, d-'done' message, p-percentage, q-be completely quiet
96 Send all messages to stderr
101 Keep broken extracted files
104 Additionally filter included files
107 Read additional filter masks from stdin
110 Read additional filter masks from list file
113 Overwrite existing files
116 Do not overwrite existing files
119 Process symbolic links as the link [absolute paths]
122 Rename files automatically
125 Save or restore file owner and group
131 Do not query password
134 Recurse subdirectories
137 .\"Specify the character set
140 Process files with size less than specified
143 Process files with size more than specified
146 Process files modified after <date> in YYYYMMDDHHMMSS format
149 Process files modified before <date> in YYYYMMDDHHMMSS format
152 Process files newer than <time>
155 Process files older than <time>
158 Save or restore file time (modification, creation, access)
170 Pause before each volume
173 Exclude specified file
176 Read file names to exclude from stdin
179 Exclude files in specified list file
182 Assume Yes on all queries
183 .\" =========================================================================
185 To use \fIunrar\fP to extract all members of the archive \fIletters.rar\fP
186 into the current directory and subdirectories below it, creating any
187 subdirectories as necessary:
193 To extract all members of \fIletters.rar\fP into the current directory only:
199 To test \fIletters.rar\fP:
205 To extract to standard output all members of \fIletters.rar\fP whose names end
206 in \fI.tex\fP piping the output into \fImore\fP(1):
209 unrar p \-inul letters '*.tex' | more
212 To extract the binary file \fIpaper1.dvi\fP from archive \fIarticles.rar\fP to
213 standard output and pipe it to a printing program:
216 unrar \-p \-inul articles paper1.dvi | dvips
219 To extract all FORTRAN and C source files--*.f, *.c, *.h, and Makefile--into
223 unrar source.rar "*.[fch]" Makefile /tmp
226 To extract any such files but convert any uppercase MS-DOS or VMS names to
230 unrar \-cl source.rar "*.[fch]" Makefile /tmp
233 To extract newer versions of the files already in the current directory and
234 to create any files not already there:
237 unrar x -u -o+ sources.rar
240 .\" =========================================================================
241 .SH ENVIRONMENT VARIABLES
244 Unrar reads the switches from \fBRAR\fP, unless the commandline option
245 \fI\-cfg\-\fP is given. Theese two examples do the same thing:
248 unrar x -u -o+ sources.rar
249 RAR='-u -o+' unrar x sources.rar
252 .\" =========================================================================
256 Unrar reads the switches from .rarrc unless commandline option \fI\-cfg\-\fP is
257 given. Unrar goes sequentially through theese directories and reads first (and
258 only first) .rarrc found.
260 \fB$HOME/.rarrc\fR (if $HOME is defined)
262 \fB/etc/rar/.rarrc\fR
263 \fB/usr/lib/.rarrc\fR
264 \fB/usr/local/lib/.rarrc\fR
265 \fB/usr/local/etc/.rarrc\fR
268 rarrc should consist of lines in the form \fBswitches=<switches>\fR. For example:
273 .\" =========================================================================
275 The exit status (or error level) has the following meanings:
278 normal; no errors or warnings detected.
280 one or more warning errors were encountered, but processing completed anyway.
282 fatal error encountered during rar archive processing.
284 CRC error. Internal archive checksum does not match the data.
286 Locking issue. Not used in unrar.
288 unrar was unable to write data to disk.
290 unrar was unable to open a file
292 User error (like wrong switch, etc.)
294 unrar was unable to allocate memory
296 unrar was unable to create file
298 User terminated the process by using Ctrl+C
299 .\" =========================================================================
301 Unrar sources can be obtained at
303 \fChttp://www.rarlab.com/rar_add.htm\fR
306 .\" =========================================================================
308 The source code of UnRAR utility is freeware. This means:
311 All copyrights to RAR and the utility UnRAR are exclusively owned by the author
314 The UnRAR sources may be used in any software to handle RAR archives without
315 limitations free of charge, but cannot be used to re-create the RAR compression
316 algorithm, which is proprietary. Distribution of modified UnRAR sources in
317 separate form or as a part of other software is permitted, provided that it is
318 clearly stated in the documentation and source comments that the code may not
319 be used to develop a RAR (WinRAR) compatible archiver.
321 The UnRAR utility may be freely distributed. It is allowed to distribute UnRAR
322 inside of other software packages.
324 THE RAR ARCHIVER AND THE UnRAR UTILITY ARE DISTRIBUTED "AS IS". NO WARRANTY OF
325 ANY KIND IS EXPRESSED OR IMPLIED. YOU USE AT YOUR OWN RISK. THE AUTHOR WILL
326 NOT BE LIABLE FOR DATA LOSS, DAMAGES, LOSS OF PROFITS OR ANY OTHER KIND OF LOSS
327 WHILE USING OR MISUSING THIS SOFTWARE.
329 Installing and using the UnRAR utility signifies acceptance of these terms and
330 conditions of the license.
332 If you don't agree with terms of the license you must remove UnRAR files from
333 your storage devices and cease to use the utility.