patool
portable archive file manager that provides a unified interface for numerous
TLDR
Extract an archive
SYNOPSIS
patool [extract|create|list|diff|search|test|repack] [options] archive [files...]
DESCRIPTION
patool is a portable archive file manager that provides a unified interface for numerous archive formats. It automatically detects archive types and uses the appropriate backend tool for each format.
Supported formats include zip, tar, gzip, bzip2, xz, 7z, rar, lzma, and many others. The tool abstracts away format-specific commands, allowing consistent operations across all archive types.
PARAMETERS
-v, --verbose
Verbose output-n, --non-interactive
Non-interactive mode--outdir _dir_
Extract to specified directory
COMMANDS
extract
Extract files from archivecreate
Create new archive from fileslist
List archive contentsdiff
Compare contents of two archivessearch
Search for pattern in archive contentstest
Test archive integrityrepack
Convert archive to different format
CAVEATS
Requires backend tools for each archive format (unzip, tar, 7z, etc.). Some formats have limited support depending on available tools. Creating certain formats may require specific utilities.
HISTORY
patool was created by Bastian Kleineidam to simplify archive handling. Written in Python, it serves as a wrapper around various archiving tools, providing a consistent interface regardless of the underlying format.
