How To Install libmail-verify-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libmail-verify-perl on Ubuntu 18.04.
What is libmail-verify-perl
libmail-verify-perl is:
Mail::Verify provides a function CheckAddress function for verifying email addresses. First the syntax of the email address is checked, then it verifies that there is at least one valid MX server accepting email for the domain. Using Net::DNS and IO::Socket a list of MX records (or, falling back on a hosts A record) are checked to make sure at least one SMTP server is accepting connections.
There are three methods to install libmail-verify-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 libmail-verify-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 libmail-verify-perl using apt-get by running the following command:
sudo apt-get -y install libmail-verify-perl
Install libmail-verify-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libmail-verify-perl using apt by running the following command:
sudo apt -y install libmail-verify-perl
Install libmail-verify-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 libmail-verify-perl using aptitude by running the following command:
sudo aptitude -y install libmail-verify-perl
How To Uninstall libmail-verify-perl on Ubuntu 18.04
To uninstall only the libmail-verify-perl package we can use the following command:
sudo apt-get remove libmail-verify-perl
Uninstall libmail-verify-perl And Its Dependencies
To uninstall libmail-verify-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libmail-verify-perl
Remove libmail-verify-perl Configurations and Data
To remove libmail-verify-perl configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libmail-verify-perl
Remove libmail-verify-perl configuration, data, and all of its dependencies
We can use the following command to remove libmail-verify-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmail-verify-perl
References
Summary
In this tutorial we learn how to install libmail-verify-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.