How To Install libhtml-format-perl on Kali Linux

In this tutorial we learn how to install libhtml-format-perl on Kali Linux. libhtml-format-perl is module for transforming HTML into various formats

Introduction

In this tutorial we learn how to install libhtml-format-perl on Kali Linux.

What is libhtml-format-perl

libhtml-format-perl is:

HTML::Formatter is a base class for various formatters, which are modules that traverse an HTML syntax tree and produce various output file formats. There are currently three formatter classes included:

  • HTML::FormatText for converting to plain human-readable text
  • HTML::FormatPS for converting to PostScript
  • HTML::FormatRTF for converting to Microsoft’s Rich Text Format (RTF)

There are three methods to install libhtml-format-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-format-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-format-perl using apt-get by running the following command:

sudo apt-get -y install libhtml-format-perl

Install libhtml-format-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libhtml-format-perl

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

sudo aptitude -y install libhtml-format-perl

How To Uninstall libhtml-format-perl on Kali Linux

To uninstall only the libhtml-format-perl package we can use the following command:

sudo apt-get remove libhtml-format-perl

Uninstall libhtml-format-perl And Its Dependencies

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

sudo apt-get -y autoremove libhtml-format-perl

Remove libhtml-format-perl Configurations and Data

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

sudo apt-get -y purge libhtml-format-perl

Remove libhtml-format-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libhtml-format-perl

Dependencies

libhtml-format-perl have the following dependencies:

References

Summary

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