How To Install libemail-find-perl on Ubuntu 18.04

In this tutorial we learn how to install libemail-find-perl on Ubuntu 18.04. libemail-find-perl is module to find RFC 822 email addresses in plain text

Introduction

In this tutorial we learn how to install libemail-find-perl on Ubuntu 18.04.

What is libemail-find-perl

libemail-find-perl is:

Email::Find is a module for finding a subset of RFC 822 email addresses in arbitrary text. The addresses it finds are not guaranteed to exist or even actually be email addresses at all, but they will be valid RFC 822 syntax.

Email::Find will perform some heuristics to avoid some of the more obvious red herrings and false addresses, but there’s only so much which can be done without a human.

There are three methods to install libemail-find-perl on Ubuntu 18.04. 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-find-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-find-perl using apt-get by running the following command:

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

Install libemail-find-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libemail-find-perl

Install libemail-find-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libemail-find-perl

How To Uninstall libemail-find-perl on Ubuntu 18.04

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

sudo apt-get remove libemail-find-perl

Uninstall libemail-find-perl And Its Dependencies

To uninstall libemail-find-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

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

Remove libemail-find-perl Configurations and Data

To remove libemail-find-perl configuration and data from Ubuntu 18.04 we can use the following command:

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

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

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

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

References

Summary

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