2010-03-04 18:51:47 +00:00
|
|
|
|
PATOOL(1) PATOOL(1)
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NAME
|
|
|
|
|
patool - simple manager for file archives of various types
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
2010-03-06 13:01:02 +00:00
|
|
|
|
patool (extract|list|test) [options] <archive-file>...
|
|
|
|
|
patool create [options] <archive-file> [files...]
|
2010-03-11 15:02:08 +00:00
|
|
|
|
patool diff [options] <archive1> <archive2>
|
2010-02-21 12:40:42 +00:00
|
|
|
|
patool formats [options]
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
2010-03-04 18:51:47 +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 programs and options.
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
2010-03-04 18:51:47 +00:00
|
|
|
|
The archive format is determined by the file(1) program and as a fall‐
|
|
|
|
|
back by the archive file extension.
|
2010-02-22 17:28:07 +00:00
|
|
|
|
|
2010-03-08 17:28:11 +00:00
|
|
|
|
patool supports 7z (.7z), ACE (.ace), ALZIP (.alz), AR (.a), ARC
|
|
|
|
|
(.arc), ARJ (.arj), BZIP2 (.bz2), CAB (.cab), compress (.Z), CPIO
|
2010-03-08 18:58:39 +00:00
|
|
|
|
(.cpio), DEB (.deb), GZIP (.gz), LRZIP (.lrz), LZH (.lha, .lzh), LZIP
|
|
|
|
|
(.lz), LZMA (.lzma), LZOP (.lzo), RPM (.rpm), RAR (.rar), TAR (.tar),
|
|
|
|
|
XZ (.xz) and ZIP (.zip, .jar) formats. It relies on helper applica‐
|
|
|
|
|
tions to handle those archive formats (for example bzip2 for BZIP2 ar‐
|
|
|
|
|
chives).
|
2010-02-21 11:14:57 +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
|
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-06 13:01:02 +00:00
|
|
|
|
|
2010-02-21 11:14:57 +00:00
|
|
|
|
COMMANDS
|
|
|
|
|
Several commands and options are available.
|
|
|
|
|
|
|
|
|
|
extract
|
2010-03-08 18:58:39 +00:00
|
|
|
|
Extract files from an archive. This is the default command if no com‐
|
2010-03-06 10:29:25 +00:00
|
|
|
|
mand was given.
|
2010-03-08 18:58:39 +00:00
|
|
|
|
Often one wants to extract all files in an archive to a single subdi‐
|
|
|
|
|
rectory. However, some archives contain multiple files in their root
|
2010-03-06 10:29:25 +00:00
|
|
|
|
directories. The patool program overcomes this problem by first
|
|
|
|
|
extracting files to a unique (temporary) directory, and then moving its
|
2010-03-08 18:58:39 +00:00
|
|
|
|
contents back if possible. This also prevents local files from being
|
2010-03-06 10:29:25 +00:00
|
|
|
|
overwritten by mistake.
|
2010-03-08 18:58:39 +00:00
|
|
|
|
All extracted files are checked that they are readable by the current
|
2010-03-06 14:23:16 +00:00
|
|
|
|
user.
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
2010-03-06 10:38:29 +00:00
|
|
|
|
-v, --verbose
|
2010-03-08 18:58:39 +00:00
|
|
|
|
Be verbose when extracting (if the helper application supports
|
2010-03-04 18:51:47 +00:00
|
|
|
|
it).
|
2010-02-21 11:14:57 +00:00
|
|
|
|
|
|
|
|
|
--help Show help for this command.
|
|
|
|
|
|
|
|
|
|
list
|
|
|
|
|
List files in an archive.
|
|
|
|
|
|
2010-03-06 10:38:29 +00:00
|
|
|
|
-v, --verbose
|
2010-02-21 11:14:57 +00:00
|
|
|
|
Verbose archive listing (if the helper application supports it).
|
|
|
|
|
|
|
|
|
|
--help Show help for this command.
|
|
|
|
|
|
2010-02-21 18:04:13 +00:00
|
|
|
|
create
|
2010-03-08 18:58:39 +00:00
|
|
|
|
Create an archive from given files. At least on of the given files to
|
2010-03-06 13:01:02 +00:00
|
|
|
|
add to the archive has to exist.
|
|
|
|
|
|
|
|
|
|
-v, --verbose
|
|
|
|
|
Verbose operation (if the helper application supports it).
|
2010-02-21 18:04:13 +00:00
|
|
|
|
|
|
|
|
|
--help Show help for this command.
|
|
|
|
|
|
2010-02-21 12:40:42 +00:00
|
|
|
|
test
|
|
|
|
|
Test files in an archive.
|
|
|
|
|
|
2010-03-06 10:38:29 +00:00
|
|
|
|
-v, --verbose
|
2010-02-21 12:40:42 +00:00
|
|
|
|
Verbose archive testing (if the helper application supports it).
|
|
|
|
|
|
|
|
|
|
--help Show help for this command.
|
|
|
|
|
|
2010-03-11 15:02:08 +00:00
|
|
|
|
diff
|
|
|
|
|
Show differences between two archives.
|
|
|
|
|
|
|
|
|
|
--help Show help for this command.
|
|
|
|
|
|
2010-02-21 11:14:57 +00:00
|
|
|
|
formats
|
|
|
|
|
Show all supported archive formats.
|
|
|
|
|
|
|
|
|
|
--help Show help for this command.
|
|
|
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
|
Bastian Kleineidam <calvin@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
COPYRIGHT
|
|
|
|
|
Copyright © 2010 Bastian Kleineidam
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-04 18:51:47 +00:00
|
|
|
|
patool February 2010 PATOOL(1)
|