How To Install libalgorithm-diff-perl on Kali Linux

In this tutorial we learn how to install libalgorithm-diff-perl on Kali Linux. libalgorithm-diff-perl is module to find differences between files

Introduction

In this tutorial we learn how to install libalgorithm-diff-perl on Kali Linux.

What is libalgorithm-diff-perl

libalgorithm-diff-perl is:

Algorithm::Diff is a Perl module that allows users to analyze text based on a Longest Common Subsequence (LCS) algorithm. It can compare two files and find the differences between them, which can produce the same information as the common Unix tool ‘diff’.

There is an XS-optimized implementation of the core loop, which accelerates some types of diff output (see libalgorithm-diff-xs-perl).

There are three methods to install libalgorithm-diff-perl 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 libalgorithm-diff-perl Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libalgorithm-diff-perl

Install libalgorithm-diff-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libalgorithm-diff-perl using apt by running the following command:

sudo apt -y install libalgorithm-diff-perl

Install libalgorithm-diff-perl 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 libalgorithm-diff-perl using aptitude by running the following command:

sudo aptitude -y install libalgorithm-diff-perl

How To Uninstall libalgorithm-diff-perl on Kali Linux

To uninstall only the libalgorithm-diff-perl package we can use the following command:

sudo apt-get remove libalgorithm-diff-perl

Uninstall libalgorithm-diff-perl And Its Dependencies

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

sudo apt-get -y autoremove libalgorithm-diff-perl

Remove libalgorithm-diff-perl Configurations and Data

To remove libalgorithm-diff-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libalgorithm-diff-perl

Remove libalgorithm-diff-perl configuration, data, and all of its dependencies

We can use the following command to remove libalgorithm-diff-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libalgorithm-diff-perl

Dependencies

libalgorithm-diff-perl have the following dependencies:

References

Summary

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