How To Install libmime-lite-html-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libmime-lite-html-perl
on Ubuntu 20.04.
What is libmime-lite-html-perl
libmime-lite-html-perl is:
Mime::Lite::Html provides an interface for sending message that supports HTML format and builds it for you. This is useful to transform HTML pages into MIME email like that:
- Get the page with LWP if needed
- Parse page to find included images and objects (gif, jpg, flash)
- Attach them to mail with proper header
- Include external CSS and Javascript files
- Replace relative urls with absolute ones
- Build the MIME email with any parts found
There are three methods to install libmime-lite-html-perl
on Ubuntu 20.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 libmime-lite-html-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 libmime-lite-html-perl
using apt-get
by running the following command:
sudo apt-get -y install libmime-lite-html-perl
Install libmime-lite-html-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libmime-lite-html-perl
using apt
by running the following command:
sudo apt -y install libmime-lite-html-perl
Install libmime-lite-html-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 libmime-lite-html-perl
using aptitude
by running the following command:
sudo aptitude -y install libmime-lite-html-perl
How To Uninstall libmime-lite-html-perl on Ubuntu 20.04
To uninstall only the libmime-lite-html-perl
package we can use the following command:
sudo apt-get remove libmime-lite-html-perl
Uninstall libmime-lite-html-perl And Its Dependencies
To uninstall libmime-lite-html-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libmime-lite-html-perl
Remove libmime-lite-html-perl Configurations and Data
To remove libmime-lite-html-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libmime-lite-html-perl
Remove libmime-lite-html-perl configuration, data, and all of its dependencies
We can use the following command to remove libmime-lite-html-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmime-lite-html-perl
References
Summary
In this tutorial we learn how to install libmime-lite-html-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.