How To Install libtext-header-perl on Kali Linux

In this tutorial we learn how to install libtext-header-perl on Kali Linux. libtext-header-perl is RFC 822/2068 header and unheader functions

Introduction

In this tutorial we learn how to install libtext-header-perl on Kali Linux.

What is libtext-header-perl

libtext-header-perl is:

Text::Header provides two new functions, header and unheader, which provide general-purpose RFC 822 header construction and parsing. They do not provide any intelligent defaults of HTTP-specific methods. They are simply aimed at providing an easy means to address the mechanics of header parsing.

The output style is designed to mimic CGI.pm and HTTP::Headers, so that users familiar with these interfaces will feel at home with these functions.

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

sudo apt-get -y install libtext-header-perl

Install libtext-header-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtext-header-perl

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

sudo aptitude -y install libtext-header-perl

How To Uninstall libtext-header-perl on Kali Linux

To uninstall only the libtext-header-perl package we can use the following command:

sudo apt-get remove libtext-header-perl

Uninstall libtext-header-perl And Its Dependencies

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

sudo apt-get -y autoremove libtext-header-perl

Remove libtext-header-perl Configurations and Data

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

sudo apt-get -y purge libtext-header-perl

Remove libtext-header-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtext-header-perl

Dependencies

libtext-header-perl have the following dependencies:

References

Summary

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