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
|
|
|
|
patool - simple manager for file archives of various types
|
|
|
|
.SH SYNOPSIS
|
2010-02-21 12:40:42 +00:00
|
|
|
\fBpatool\fP (\fBextract\fP|\fBlist\fP|\fBtest\fP) [\fIoptions\fP] <\fIarchive-file\fP>
|
2010-03-06 10:29:25 +00:00
|
|
|
\fBpatool\fP \fBcreate\fP [\fIoptions\fP] <\fIarchive-file\fP> [\fIfiles\fP..]
|
2010-02-21 12:40:42 +00:00
|
|
|
\fBpatool\fP \fBformats\fP [\fIoptions\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
|
2010-03-04 18:51:34 +00:00
|
|
|
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
|
|
|
|
\fBpatool\fP supports 7z (.7z), ZIP (.zip, .jar), GZIP (.gz), compress (.Z),
|
|
|
|
BZIP2 (.bz2), TAR (.tar), ARJ (.arj), CAB (.cab), CPIO (.cpio),
|
2010-03-04 16:05:35 +00:00
|
|
|
RPM (.rpm), DEB (.deb), LZIP (.lz), LZOP (.lzo), LZMA (.lzma), RAR (.rar)
|
|
|
|
and XZ (.xz) 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 COMMANDS
|
|
|
|
Several commands and options are available.
|
|
|
|
.SS \fBextract\fP
|
2010-03-06 10:29:25 +00:00
|
|
|
Extract files from an archive. This is the default command if no
|
|
|
|
command was given.
|
|
|
|
.br
|
|
|
|
Often one wants to extract all files
|
2010-03-04 18:51:34 +00:00
|
|
|
in an archive to a single subdirectory.
|
2010-02-21 11:14:57 +00:00
|
|
|
However, some archives contain multiple files in their root
|
|
|
|
directories. The patool program overcomes this problem by
|
|
|
|
first extracting files to a unique (temporary) directory, and
|
|
|
|
then moving its contents back if possible. This also prevents
|
|
|
|
local files from being overwritten by mistake.
|
|
|
|
.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).
|
|
|
|
.TP
|
|
|
|
\fB\-\-help\fP
|
|
|
|
Show help for this command.
|
|
|
|
.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).
|
|
|
|
.TP
|
|
|
|
\fB\-\-help\fP
|
|
|
|
Show help for this command.
|
2010-02-21 11:53:00 +00:00
|
|
|
.SS \fBcreate\fP
|
|
|
|
Create an archive from given files.
|
2010-03-06 10:29:25 +00:00
|
|
|
.\" .TP
|
2010-03-06 10:38:29 +00:00
|
|
|
.\" \fB\-v\fP, \fB\-\-verbose\fP
|
2010-03-06 10:29:25 +00:00
|
|
|
.\" Verbose operation (if the helper application supports it).
|
2010-02-21 11:53:00 +00:00
|
|
|
.TP
|
|
|
|
\fB\-\-help\fP
|
|
|
|
Show help for this command.
|
2010-02-21 12:40:42 +00:00
|
|
|
.SS \fBtest\fP
|
|
|
|
Test files in an archive.
|
|
|
|
.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).
|
|
|
|
.TP
|
|
|
|
\fB\-\-help\fP
|
|
|
|
Show help for this command.
|
2010-02-21 11:14:57 +00:00
|
|
|
.SS \fBformats\fP
|
|
|
|
Show all supported archive formats.
|
|
|
|
.TP
|
|
|
|
\fB\-\-help\fP
|
|
|
|
Show help for this command.
|
|
|
|
.SH AUTHOR
|
|
|
|
Bastian Kleineidam <calvin@users.sourceforge.net>
|
|
|
|
.SH COPYRIGHT
|
|
|
|
Copyright \(co 2010 Bastian Kleineidam
|