patool command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
patool: command not found
or when using sudo you get the following error message
sudo: patool: command not found
Solutions to patool: command not found
How To Fix patool: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu patool is provided by patool package.
patool is:
Various archive formats can be created, extracted, tested, listed, compared, searched and repacked by patool. The archive format is determined with file and as a fallback by the archive file extension.
patool supports 7z (.7z), ACE (.ace), ADF (.adf), ALZIP (.alz), AR (.a), ARC (.arc), ARJ (.arj), BZIP2 (.bz2), CAB (.cab), compress (.Z), CPIO (.cpio), DEB (.deb), DMS (.dms), FLAC (.flac), GZIP (.gz), ISO (.iso), LZH (.lha, .lzh), LZIP (.lz), LZMA (.lzma), LZOP (.lzo), RAR (.rar), RPM (.rpm), RZIP (.rz), SHAR (.shar), 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.
To fix this problem, we can install more using the command below.
sudo apt-get -y install patool
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install patool.
sudo apt -y install patool
Or if you have aptitude installed you can use the following command.
sudo aptitude install patool
Summary
In this tutorial we learn how to fix patool command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.