How To Install patool on Kali Linux

In this tutorial we learn how to install patool on Kali Linux. patool is command line archive file manager

Introduction

In this tutorial we learn how to install patool on Kali Linux.

What is patool

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.

There are three methods to install patool on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install patool Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install patool using apt-get by running the following command:

sudo apt-get -y install patool

Install patool Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install patool using apt by running the following command:

sudo apt -y install patool

Install patool Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install patool using aptitude by running the following command:

sudo aptitude -y install patool

How To Uninstall patool on Kali Linux

To uninstall only the patool package we can use the following command:

sudo apt-get remove patool

Uninstall patool And Its Dependencies

To uninstall patool and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove patool

Remove patool Configurations and Data

To remove patool configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge patool

Remove patool configuration, data, and all of its dependencies

We can use the following command to remove patool configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge patool

Dependencies

patool have the following dependencies:

References

Summary

In this tutorial we learn how to install patool package on Kali Linux using different package management tools: apt, apt-get and aptitude.