2010-03-19 12:09:16 +00:00
|
|
|
|
PATOOL(1) PATOOL(1)
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NAME
|
2010-03-12 11:54:40 +00:00
|
|
|
|
patool - portable command line archive file manager
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
2012-04-09 09:56:35 +00:00
|
|
|
|
patool (list|test) [--verbose] <archive-file>...
|
|
|
|
|
patool extract [--verbose] [--outdir=DIRNAME] <archive-
|
|
|
|
|
file>...
|
2010-03-18 18:26:07 +00:00
|
|
|
|
patool create [--verbose] <archive-file> [files...]
|
2010-03-11 17:33:58 +00:00
|
|
|
|
patool diff <archive1> <archive2>
|
|
|
|
|
patool repack <archive1> <archive2>
|
2010-03-18 18:26:07 +00:00
|
|
|
|
patool formats
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
2012-04-09 09:56:35 +00:00
|
|
|
|
Various archive types can be created, extracted, tested and
|
|
|
|
|
listed by patool. The advantage of patool is its simplicity in
|
|
|
|
|
handling archive files without having to remember a myriad of
|
2010-03-19 12:09:16 +00:00
|
|
|
|
programs and options.
|
|
|
|
|
|
2012-04-09 09:56:35 +00:00
|
|
|
|
The archive format is determined by the file(1) program and as
|
2010-03-19 12:09:16 +00:00
|
|
|
|
a fallback by the archive file extension.
|
|
|
|
|
|
2012-05-17 09:35:20 +00:00
|
|
|
|
patool supports 7z (.7z), ACE (.ace), ALZIP (.alz), APE (.ape),
|
|
|
|
|
AR (.a), ARC (.arc), ARJ (.arj), BZIP2 (.bz2), CAB (.cab), com‐
|
|
|
|
|
press (.Z), CPIO (.cpio), DEB (.deb), DMS (.dms), GZIP (.gz),
|
|
|
|
|
LRZIP (.lrz), LZH (.lha, .lzh), LZIP (.lz), LZMA (.lzma), LZOP
|
2012-05-17 12:28:12 +00:00
|
|
|
|
(.lzo), RPM (.rpm), RAR (.rar), RZIP (.rz), SHN (.shn), TAR
|
|
|
|
|
(.tar), XZ (.xz), ZIP (.zip, .jar) and ZOO (.zoo) formats. It
|
|
|
|
|
relies on helper applications to handle those archive formats
|
|
|
|
|
(for example bzip2 for BZIP2 archives).
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
2012-05-12 07:05:20 +00:00
|
|
|
|
The archive formats TAR (.tar), ZIP (.zip), BZIP2 (.bz2) and
|
|
|
|
|
GZIP (.gz) are supported natively and do not require helper
|
|
|
|
|
applications to be installed.
|
|
|
|
|
|
2010-03-06 13:01:02 +00:00
|
|
|
|
EXAMPLES
|
2010-03-06 13:17:01 +00:00
|
|
|
|
patool extract archive.zip otherarchive.rar
|
2010-03-06 13:01:02 +00:00
|
|
|
|
patool test --verbose dist.tar.gz
|
|
|
|
|
patool list package.deb
|
|
|
|
|
patool create --verbose myfiles.zip file1.txt dir/
|
2010-03-11 15:02:08 +00:00
|
|
|
|
patool diff release1.0.tar.gz release2.0.zip
|
2010-03-11 17:33:58 +00:00
|
|
|
|
patool repack linux-2.6.33.tar.gz linux-2.6.33.tar.bz2
|
2010-03-06 13:01:02 +00:00
|
|
|
|
|
2010-02-21 11:14:57 +00:00
|
|
|
|
COMMANDS
|
|
|
|
|
Several commands and options are available.
|
|
|
|
|
|
|
|
|
|
extract
|
2012-04-09 09:56:35 +00:00
|
|
|
|
Extract files from an archive. The original archive will never
|
2010-03-19 12:09:16 +00:00
|
|
|
|
be removed and is left as it is.
|
2010-03-18 18:26:07 +00:00
|
|
|
|
This is the default command if no command was given.
|
|
|
|
|
|
2012-04-09 09:56:35 +00:00
|
|
|
|
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
|
2010-03-19 12:09:16 +00:00
|
|
|
|
removed.
|
2012-04-09 09:56:35 +00:00
|
|
|
|
This prevents cluttering the current working directory with a
|
2010-03-19 12:09:16 +00:00
|
|
|
|
lot of files from the extracted archive.
|
2010-03-18 18:26:07 +00:00
|
|
|
|
|
2012-04-09 09:56:35 +00:00
|
|
|
|
All extracted files are ensured that they are readable by the
|
2010-03-19 12:09:16 +00:00
|
|
|
|
current user.
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
2010-03-06 10:38:29 +00:00
|
|
|
|
-v, --verbose
|
2012-04-09 09:56:35 +00:00
|
|
|
|
Be verbose when extracting (if the helper application
|
2010-03-19 12:09:16 +00:00
|
|
|
|
supports it).
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
list
|
|
|
|
|
List files in an archive.
|
|
|
|
|
|
2010-03-06 10:38:29 +00:00
|
|
|
|
-v, --verbose
|
2012-04-09 09:56:35 +00:00
|
|
|
|
Verbose archive listing (if the helper application sup‐
|
2010-03-19 12:09:16 +00:00
|
|
|
|
ports it).
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
2010-02-21 18:04:13 +00:00
|
|
|
|
create
|
2012-04-09 09:56:35 +00:00
|
|
|
|
Create an archive from given files. At least on of the given
|
|
|
|
|
files to add to the archive has to exist (non-existing files
|
|
|
|
|
are ignored). The format of the archive to create is deter‐
|
2010-03-19 12:09:16 +00:00
|
|
|
|
mined by the archive file extension.
|
2010-03-06 13:01:02 +00:00
|
|
|
|
|
|
|
|
|
-v, --verbose
|
2012-04-09 09:56:35 +00:00
|
|
|
|
Verbose operation (if the helper application supports
|
2010-03-19 12:09:16 +00:00
|
|
|
|
it).
|
2010-02-21 18:04:13 +00:00
|
|
|
|
|
2010-02-21 12:40:42 +00:00
|
|
|
|
test
|
2012-04-09 09:56:35 +00:00
|
|
|
|
Test files in an archive. If the helper application does not
|
2010-03-19 12:09:16 +00:00
|
|
|
|
support testing, the archive contents are listed instead.
|
2010-02-21 12:40:42 +00:00
|
|
|
|
|
2010-03-06 10:38:29 +00:00
|
|
|
|
-v, --verbose
|
2012-04-09 09:56:35 +00:00
|
|
|
|
Verbose archive testing (if the helper application sup‐
|
2010-03-19 12:09:16 +00:00
|
|
|
|
ports it).
|
2010-02-21 12:40:42 +00:00
|
|
|
|
|
2010-03-11 15:02:08 +00:00
|
|
|
|
diff
|
2010-03-19 12:09:16 +00:00
|
|
|
|
Show differences between two archives with the diff(1) utility.
|
|
|
|
|
The diff options used are -urN.
|
2010-03-11 15:02:08 +00:00
|
|
|
|
|
2010-03-11 17:33:58 +00:00
|
|
|
|
repack
|
2012-04-09 09:56:35 +00:00
|
|
|
|
Repackage archive to a different format. The target archive
|
2010-03-19 12:09:16 +00:00
|
|
|
|
format is determined by the file extension.
|
2010-03-11 17:33:58 +00:00
|
|
|
|
|
2010-02-21 11:14:57 +00:00
|
|
|
|
formats
|
2012-04-09 09:56:35 +00:00
|
|
|
|
Show all supported archive formats (ie. which helper applica‐
|
2010-03-19 12:09:16 +00:00
|
|
|
|
tions are available).
|
2010-03-18 18:26:07 +00:00
|
|
|
|
|
|
|
|
|
HELP OPTION
|
2012-04-09 09:56:35 +00:00
|
|
|
|
Specifying the help option displays help for patool itself, or
|
2010-03-19 12:09:16 +00:00
|
|
|
|
a command.
|
2010-03-18 18:26:07 +00:00
|
|
|
|
For example:
|
|
|
|
|
patool --help - display help for patool
|
|
|
|
|
patool extract --help - display help for the extract command
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
|
Bastian Kleineidam <calvin@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
COPYRIGHT
|
2012-04-09 09:56:35 +00:00
|
|
|
|
Copyright © 2010-2012 Bastian Kleineidam
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-19 12:09:16 +00:00
|
|
|
|
patool February 2010 PATOOL(1)
|