Various archive formats can be created, extracted, tested, listed, searched, compared, and repacked by patool. The advantage of patool is its simplicity in handling archive files without having to remember myriad programs and options. The archive format is determined by the file(1) program and as a fallback by the archive file extension. patool supports 7z (.7z), ACE (.ace), ADF (.adf), ALZIP (.alz), 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 applications to handle those archive formats (for example bzip2 for BZIP2 archives). The archive formats tar, zip, bzip2, and gzip are supported natively and do not require helper applications to be installed.
| Tags | Archivers Compression Command Line |
|---|---|
| Licenses | GPLv3 |
| Operating Systems | OS Independent |
| Implementation | Python |
Recent releases


Release Notes: An error with repacking compressed tar archives with 7z has been fixed. Support for the zopfli compressor has been added.


Release Notes: Archive contents can now be searched. Support for ISO images has been added. Python 3.x support has been fixed. Handling of lzma, lzop, lrzip, and rzip archives has been fixed.


Release Notes: Support for the lzma module in Python >= 3.3 has been added, and repacking of archives with the same format has been optimized.


Release Notes: Support has been added for chmlib and archmage handling Microsoft ITSS/CHM (.chm) archives. The project has moved from Sourceforge to Github.


Release Notes: Support for the following archive programs has been added: Monkey's Audio Compressor (handling .ape archives), shorten (handling .shn archives), flac (handling .flac archives), lhasa (handling .lzh and .lha archives), lcap (handling .cab archives), shar (handling .shar shell archives), and unadf (handling .adf amiga disk archives). The internal MIME database is now initialized correctly on all platforms.