How To Install libhtml-diff-perl on Kali Linux
Introduction
In this tutorial we learn how to install libhtml-diff-perl
on Kali Linux.
What is libhtml-diff-perl
libhtml-diff-perl is:
HTML::Diff compares two strings of HTML and returns a list of a chunks which indicate the diff between the two input strings, where changes in formatting are considered changes.
HTML::Diff does not strictly parse the HTML. Instead, it uses regular expressions to make a decent effort at understanding the given HTML. As a result, there are many valid HTML documents for which it will not produce the correct answer. But there may be some invalid HTML documents for which it gives you the answer you’re looking for. Your mileage may vary; test it on lots of inputs from your domain before relying on it.
There are three methods to install libhtml-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 libhtml-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 libhtml-diff-perl
using apt-get
by running the following command:
sudo apt-get -y install libhtml-diff-perl
Install libhtml-diff-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libhtml-diff-perl
using apt
by running the following command:
sudo apt -y install libhtml-diff-perl
Install libhtml-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 libhtml-diff-perl
using aptitude
by running the following command:
sudo aptitude -y install libhtml-diff-perl
How To Uninstall libhtml-diff-perl on Kali Linux
To uninstall only the libhtml-diff-perl
package we can use the following command:
sudo apt-get remove libhtml-diff-perl
Uninstall libhtml-diff-perl And Its Dependencies
To uninstall libhtml-diff-perl
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libhtml-diff-perl
Remove libhtml-diff-perl Configurations and Data
To remove libhtml-diff-perl
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libhtml-diff-perl
Remove libhtml-diff-perl configuration, data, and all of its dependencies
We can use the following command to remove libhtml-diff-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libhtml-diff-perl
Dependencies
libhtml-diff-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libhtml-diff-perl
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.