patool/doc/patool.1

104 lines
4.1 KiB
Groff
Raw Normal View History

2010-02-21 11:14:57 +00:00
.\" -*- nroff -*-
.\" Copyright (C) 2010 Bastian Kleineidam
.\"
.\" This program is free software: you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation, either version 3 of the License, or
.\" (at your option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.TH PATOOL "1" "February 2010" "patool"
.SH NAME
2010-03-12 11:54:40 +00:00
patool - portable command line archive file manager
2010-02-21 11:14:57 +00:00
.SH SYNOPSIS
2010-03-18 18:26:07 +00:00
\fBpatool\fP (\fBextract\fP|\fBlist\fP|\fBtest\fP) [\fI\-\-verbose\fP] <\fIarchive-file\fP>...
\fBpatool\fP \fBcreate\fP [\fI\-\-verbose\fP] <\fIarchive-file\fP> [\fIfiles\fP...]
2010-03-11 17:33:58 +00:00
\fBpatool\fP \fBdiff\fP <\fIarchive1\fP> <\fIarchive2\fP>
\fBpatool\fP \fBrepack\fP <\fIarchive1\fP> <\fIarchive2\fP>
2010-03-18 18:26:07 +00:00
\fBpatool\fP \fBformats\fP
2010-02-21 11:14:57 +00:00
.SH DESCRIPTION
2010-02-21 12:40:42 +00:00
Various archive types can be created, extracted, tested and listed by
2010-02-22 17:28:07 +00:00
\fBpatool\fP. The advantage of patool is its simplicity in handling archive
files without having to remember a myriad of programs and options.
.PP
The archive format is determined by the file(1) program and as a fallback
by the archive file extension.
2010-02-21 11:14:57 +00:00
.PP
2010-03-08 17:28:11 +00:00
\fBpatool\fP supports 7z (.7z), ACE (.ace), ALZIP (.alz), AR (.a),
ARC (.arc), ARJ (.arj),
BZIP2 (.bz2), CAB (.cab), compress (.Z), CPIO (.cpio), DEB (.deb), GZIP (.gz),
2010-03-08 18:58:39 +00:00
LRZIP (.lrz), LZH (.lha, .lzh), LZIP (.lz), LZMA (.lzma), LZOP (.lzo),
RPM (.rpm), RAR (.rar), TAR (.tar), XZ (.xz) and ZIP (.zip, .jar) formats.
2010-02-21 11:14:57 +00:00
It relies on helper applications to handle those archive formats
(for example bzip2 for BZIP2 archives).
.SH EXAMPLES
\fBpatool extract archive.zip otherarchive.rar\fP
\fBpatool test --verbose dist.tar.gz\fP
\fBpatool list package.deb\fP
\fPpatool create --verbose myfiles.zip file1.txt dir/\fP
\fBpatool diff release1.0.tar.gz release2.0.zip\fP
2010-03-11 17:33:58 +00:00
\fBpatool repack linux-2.6.33.tar.gz linux-2.6.33.tar.bz2\fP
2010-02-21 11:14:57 +00:00
.SH COMMANDS
Several commands and options are available.
.SS \fBextract\fP
2010-03-18 18:26:07 +00:00
Extract files from an archive. The original archive will never
be removed and is left as it is.
.br
2010-03-18 18:26:07 +00:00
This is the default command if no command was given.
.PP
Files are always extracted to a unique temporary directory (in the
current working directory). If the archive contains exactly one
file or directory, the archive contents are moved to the current
working directory and the temporary directory will be removed.
2010-03-06 14:23:16 +00:00
.br
2010-03-18 18:26:07 +00:00
This ensures that always one entry will be extracted.
.PP
2010-03-06 14:23:16 +00:00
All extracted files are checked that they are readable by the
current user.
2010-02-21 11:14:57 +00:00
.TP
2010-03-06 10:38:29 +00:00
\fB\-v\fP, \fB\-\-verbose\fP
2010-02-21 11:14:57 +00:00
Be verbose when extracting (if the helper application supports it).
.SS \fBlist\fP
List files in an archive.
.TP
2010-03-06 10:38:29 +00:00
\fB\-v\fP, \fB\-\-verbose\fP
2010-02-21 11:14:57 +00:00
Verbose archive listing (if the helper application supports it).
.SS \fBcreate\fP
Create an archive from given files. At least on of the given files to add
2010-03-18 18:26:07 +00:00
to the archive has to exist (non-existing files are ignored).
The format of the archive to create is determined by the archive file
extension.
.TP
\fB\-v\fP, \fB\-\-verbose\fP
Verbose operation (if the helper application supports it).
2010-02-21 12:40:42 +00:00
.SS \fBtest\fP
2010-03-18 18:26:07 +00:00
Test files in an archive. If the helper application does not support
testing, the archive contents are listed instead.
2010-02-21 12:40:42 +00:00
.TP
2010-03-06 10:38:29 +00:00
\fB\-v\fP, \fB\-\-verbose\fP
2010-02-21 12:40:42 +00:00
Verbose archive testing (if the helper application supports it).
.SS \fBdiff\fP
2010-03-18 18:26:07 +00:00
Show differences between two archives with the \fBdiff(1)\fP utility.
The diff options used are \fB\-urN\fP.
2010-03-11 17:33:58 +00:00
.SS \fBrepack\fP
2010-03-18 18:26:07 +00:00
Repackage archive to a different format. The target archive format is
determined by the file extension.
2010-02-21 11:14:57 +00:00
.SS \fBformats\fP
2010-03-18 18:26:07 +00:00
Show all supported archive formats (ie. which helper applications
are available).
.SH HELP OPTION
Specifying the help option displays help for patool itself, or a
command.
.br
For example:
\fBpatool \-\-help\fP - display help for patool
\fBpatool extract \-\-help\fP - display help for the extract command
2010-02-21 11:14:57 +00:00
.SH AUTHOR
Bastian Kleineidam <calvin@users.sourceforge.net>
.SH COPYRIGHT
Copyright \(co 2010 Bastian Kleineidam