How To Install libemail-received-perl on Debian 11

In this tutorial we learn how to install libemail-received-perl on Debian 11. libemail-received-perl is Perl module to parse an email Received

Introduction

In this tutorial we learn how to install libemail-received-perl on Debian 11.

What is libemail-received-perl

libemail-received-perl is:

Email::Received is a Perl Email Project rewrite of SpamAssassin’s email header parser. This was done so that the great work they did in analysing pretty much every possible Received header format could be used in applications other than SpamAssassin itself.

The module provides one function, parse_received, which takes a single Received line. It then produces either nothing, if the line is unparsable, or a hash reference if it parsed the message.

There are three methods to install libemail-received-perl on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libemail-received-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 libemail-received-perl using apt-get by running the following command:

sudo apt-get -y install libemail-received-perl

Install libemail-received-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libemail-received-perl

Install libemail-received-perl Using aptitude

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

sudo aptitude update

After updating apt database, We can install libemail-received-perl using aptitude by running the following command:

sudo aptitude -y install libemail-received-perl

How To Uninstall libemail-received-perl on Debian 11

To uninstall only the libemail-received-perl package we can use the following command:

sudo apt-get remove libemail-received-perl

Uninstall libemail-received-perl And Its Dependencies

To uninstall libemail-received-perl and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove libemail-received-perl

Remove libemail-received-perl Configurations and Data

To remove libemail-received-perl configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge libemail-received-perl

Remove libemail-received-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libemail-received-perl

Dependencies

libemail-received-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libemail-received-perl package on Debian 11 using different package management tools: apt, apt-get and aptitude.