LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

patool

portable archive file manager that provides a unified interface for numerous

TLDR

Extract an archive
$ patool extract [path/to/archive]
copy
Create an archive
$ patool create [path/to/archive] [files...]
copy
List contents of archive
$ patool list [path/to/archive]
copy
Compare two archives
$ patool diff [archive1] [archive2]
copy
Search for string in archive
$ patool search [pattern] [path/to/archive]
copy
Test archive integrity
$ patool test [path/to/archive]
copy

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 archive
create
Create new archive from files
list
List archive contents
diff
Compare contents of two archives
search
Search for pattern in archive contents
test
Test archive integrity
repack
Convert archive to different format

INSTALL

sudo dnf install patool
copy
sudo zypper install patool
copy
nix profile install nixpkgs#patool
copy

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.

SEE ALSO

tar(1), unzip(1), 7z(1), unrar(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid