2015-07-19 13:43:21 +00:00
|
|
|
|
PATOOL(1) General Commands Manual PATOOL(1)
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NAME
|
2013-03-28 18:42:02 +00:00
|
|
|
|
patool - portable archive file manager
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
2013-03-28 18:42:02 +00:00
|
|
|
|
patool [global-options] (list|test|extract|cre‐
|
2013-02-26 19:42:05 +00:00
|
|
|
|
ate|diff|search|repack|formats) [command-options] <command-
|
|
|
|
|
arguments>...
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
2013-03-28 18:42:02 +00:00
|
|
|
|
Various archive formats can be created, extracted, tested,
|
|
|
|
|
listed, searched, repacked and compared by patool. The advan‐
|
|
|
|
|
tage of patool is its simplicity in handling archive files
|
2013-02-25 20:04:02 +00:00
|
|
|
|
without having to remember a myriad of programs and options.
|
2010-03-19 12:09:16 +00:00
|
|
|
|
|
2013-03-28 18:42:02 +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-10-24 21:52:58 +00:00
|
|
|
|
patool supports 7z (.7z), ACE (.ace), ADF (.adf), ALZIP (.alz),
|
2013-03-28 18:42:02 +00:00
|
|
|
|
APE (.ape), AR (.a), ARC (.arc), ARJ (.arj), BZIP2 (.bz2), CAB
|
|
|
|
|
(.cab), COMPRESS (.Z), CPIO (.cpio), DEB (.deb), DMS (.dms),
|
|
|
|
|
FLAC (.flac), GZIP (.gz), ISO (.iso), LRZIP (.lrz), LZH (.lha,
|
|
|
|
|
.lzh), LZIP (.lz), LZMA (.lzma), LZOP (.lzo), RPM (.rpm), RAR
|
|
|
|
|
(.rar), RZIP (.rz), SHN (.shn), TAR (.tar), XZ (.xz), ZIP
|
|
|
|
|
(.zip, .jar) and ZOO (.zoo) formats. It relies on helper
|
2013-02-27 18:38:07 +00:00
|
|
|
|
applications to handle those archive formats (for example bzip2
|
|
|
|
|
for BZIP2 archives).
|
|
|
|
|
|
2013-03-28 18:42:02 +00:00
|
|
|
|
The archive formats TAR, ZIP, BZIP2 and GZIP are supported
|
|
|
|
|
natively and do not require helper applications to be
|
2013-02-25 20:04:02 +00:00
|
|
|
|
installed.
|
2012-05-12 07:05:20 +00:00
|
|
|
|
|
2010-03-06 13:01:02 +00:00
|
|
|
|
EXAMPLES
|
2010-03-06 13:17:01 +00:00
|
|
|
|
patool extract archive.zip otherarchive.rar
|
2013-02-25 20:04:02 +00:00
|
|
|
|
patool --verbose test dist.tar.gz
|
2010-03-06 13:01:02 +00:00
|
|
|
|
patool list package.deb
|
2013-02-25 20:04:02 +00:00
|
|
|
|
patool --verbose create myfiles.zip file1.txt dir/
|
2013-02-26 19:42:05 +00:00
|
|
|
|
patool diff release1.0.tar.xz release2.0.zip
|
2013-02-22 17:38:52 +00:00
|
|
|
|
patool search "def urlopen" python-3.3.tar.gz
|
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
|
|
|
|
|
2013-02-25 20:04:02 +00:00
|
|
|
|
GLOBAL OPTIONS
|
|
|
|
|
-v, --verbose
|
2013-03-28 18:42:02 +00:00
|
|
|
|
Display more info about what patool does, and display
|
2013-02-25 20:04:02 +00:00
|
|
|
|
the output of helper applications. Can be given multiple
|
|
|
|
|
times to increase the output even more.
|
|
|
|
|
|
2010-02-21 11:14:57 +00:00
|
|
|
|
COMMANDS
|
2013-02-22 17:38:52 +00:00
|
|
|
|
The following rules apply to all commands:
|
|
|
|
|
|
|
|
|
|
· Existing files are never overwritten.
|
|
|
|
|
|
|
|
|
|
· The original archive will never be removed.
|
|
|
|
|
|
2013-06-11 19:12:02 +00:00
|
|
|
|
· Files outside the output directory will never be created.
|
2013-02-26 19:42:05 +00:00
|
|
|
|
This relies on archive program options to prevent unpacking
|
|
|
|
|
of files with an absolute path name (eg. --no-abso‐
|
|
|
|
|
lute-filenames for cpio(1)).
|
|
|
|
|
|
2013-02-25 20:04:02 +00:00
|
|
|
|
The following commands are available.
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
extract
|
2013-02-26 19:42:05 +00:00
|
|
|
|
patool extract [--outdir directory] <archive>...
|
2013-02-25 20:04:02 +00:00
|
|
|
|
|
2013-03-28 18:42:02 +00:00
|
|
|
|
Extract files from given archives. The original archives will
|
2013-02-25 20:04:02 +00:00
|
|
|
|
never be removed and are left as is.
|
|
|
|
|
|
2013-02-26 19:42:05 +00:00
|
|
|
|
--outdir directory
|
2013-03-28 18:42:02 +00:00
|
|
|
|
Extract to the given output directory. Default is to
|
2013-02-25 20:04:02 +00:00
|
|
|
|
extract to the current working directory.
|
2010-03-18 18:26:07 +00:00
|
|
|
|
|
2013-03-28 18:42:02 +00:00
|
|
|
|
If the archive contains exactly one file or directory, the ar‐
|
|
|
|
|
chive contents are extracted directly to the output directory.
|
2012-10-24 21:52:58 +00:00
|
|
|
|
Else the files are extracted in a newly created subdirectory of
|
2013-03-28 18:42:02 +00:00
|
|
|
|
the output directory. The new directory is named after the ar‐
|
2013-02-25 20:04:02 +00:00
|
|
|
|
chive filename without the extension.
|
2013-03-28 18:42:02 +00:00
|
|
|
|
This prevents cluttering the output directory with a lot of
|
2013-02-25 20:04:02 +00:00
|
|
|
|
files from the extracted archive.
|
2010-03-18 18:26:07 +00:00
|
|
|
|
|
2013-03-28 18:42:02 +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
|
|
|
|
|
|
|
|
|
list
|
2013-02-25 20:04:02 +00:00
|
|
|
|
patool list <archive>...
|
|
|
|
|
|
|
|
|
|
List files in archives.
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
2010-02-21 18:04:13 +00:00
|
|
|
|
create
|
2013-02-25 20:04:02 +00:00
|
|
|
|
patool create <archive> <file-or-directory>...
|
|
|
|
|
|
2015-07-19 13:43:21 +00:00
|
|
|
|
Create an archive from given files. All of the given files to
|
|
|
|
|
add to the archive must be readable by the current user. The
|
|
|
|
|
format of the archive to create is determined by the archive
|
|
|
|
|
file extension. If the archive program has options to maximize
|
|
|
|
|
file compression, patool uses those options.
|
2010-03-06 13:01:02 +00:00
|
|
|
|
|
2010-02-21 12:40:42 +00:00
|
|
|
|
test
|
2013-02-25 20:04:02 +00:00
|
|
|
|
patool test <archive>...
|
|
|
|
|
|
2013-03-28 18:42:02 +00:00
|
|
|
|
Test the given archives. 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-11 15:02:08 +00:00
|
|
|
|
diff
|
2013-02-25 20:04:02 +00:00
|
|
|
|
patool diff <archive1> <archive2>
|
|
|
|
|
|
2013-02-22 17:38:52 +00:00
|
|
|
|
Show differences between two archives with the diff(1) program.
|
2010-03-19 12:09:16 +00:00
|
|
|
|
The diff options used are -urN.
|
2010-03-11 15:02:08 +00:00
|
|
|
|
|
2013-02-22 17:38:52 +00:00
|
|
|
|
search
|
2013-02-25 20:04:02 +00:00
|
|
|
|
patool search <pattern> <archive>
|
|
|
|
|
|
2013-03-28 18:42:02 +00:00
|
|
|
|
Search in archive contents for given pattern using the grep(1)
|
|
|
|
|
program. The grep options used are -r; additional options can
|
2013-02-22 17:38:52 +00:00
|
|
|
|
be supplied with the GREP_OPTIONS environment variable.
|
|
|
|
|
|
2010-03-11 17:33:58 +00:00
|
|
|
|
repack
|
2013-02-25 20:04:02 +00:00
|
|
|
|
patool repack <archive> <archive_new>
|
|
|
|
|
|
2013-03-28 18:42:02 +00:00
|
|
|
|
Repackage archive to a different format. The target archive
|
2013-02-25 20:04:02 +00:00
|
|
|
|
format is determined by the file extension of archive_new.
|
2010-03-11 17:33:58 +00:00
|
|
|
|
|
2010-02-21 11:14:57 +00:00
|
|
|
|
formats
|
2013-02-25 20:04:02 +00:00
|
|
|
|
patool formats
|
|
|
|
|
|
2013-03-28 18:42:02 +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
|
2013-03-28 18:42:02 +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
|
|
|
|
|
2013-04-20 07:08:32 +00:00
|
|
|
|
SHELL ALIASES
|
2013-09-02 20:17:36 +00:00
|
|
|
|
When running under a Unix shell the following aliases can be
|
|
|
|
|
defined to save some typing:
|
2013-04-20 07:08:32 +00:00
|
|
|
|
alias pl='patool list'
|
|
|
|
|
alias px='patool extract'
|
|
|
|
|
alias pc='patool create'
|
|
|
|
|
alias pd='patool diff'
|
|
|
|
|
|
2010-02-21 11:14:57 +00:00
|
|
|
|
AUTHOR
|
2013-02-22 17:38:52 +00:00
|
|
|
|
Bastian Kleineidam <bastian.kleineidam@web.de>
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
COPYRIGHT
|
2015-07-19 13:43:21 +00:00
|
|
|
|
Copyright © 2010-2015 Bastian Kleineidam
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-02 20:17:36 +00:00
|
|
|
|
patool July 2013 PATOOL(1)
|