How To Install libmail-imaptalk-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libmail-imaptalk-perl on Ubuntu 18.04.
What is libmail-imaptalk-perl
libmail-imaptalk-perl is:
Mail::IMAPTalk communicates with an IMAP server. Each IMAP server command is mapped to a method of this object.
Although other IMAP modules exist on CPAN, this has several advantages over other modules.
- It parses the more complex IMAP structures like envelopes and body structures into nice Perl data structures
- It correctly supports atoms, quoted strings and literals at any point. Some parsers in other modules aren’t fully IMAP compatiable and may break at odd times with certain messages on some servers
- It allows large return values (eg. attachments on a message) to be read directly into a file, rather than into memory
- It includes some helper functions to find the actual text/plain or text/html part of a message out of a complex MIME structure. It also can find a list of attachements, and CID links for HTML messages with. attached images
- It supports decoding of MIME headers to Perl utf-8 strings automatically, so you don’t have to deal with MIME encoded headers (enabled optionally)
While the IMAP protocol does allow for asynchronous running of commands, this module is designed to be used in a synchronous manner.
There are three methods to install libmail-imaptalk-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-imaptalk-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-imaptalk-perl using apt-get by running the following command:
sudo apt-get -y install libmail-imaptalk-perl
Install libmail-imaptalk-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libmail-imaptalk-perl using apt by running the following command:
sudo apt -y install libmail-imaptalk-perl
Install libmail-imaptalk-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-imaptalk-perl using aptitude by running the following command:
sudo aptitude -y install libmail-imaptalk-perl
How To Uninstall libmail-imaptalk-perl on Ubuntu 18.04
To uninstall only the libmail-imaptalk-perl package we can use the following command:
sudo apt-get remove libmail-imaptalk-perl
Uninstall libmail-imaptalk-perl And Its Dependencies
To uninstall libmail-imaptalk-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-imaptalk-perl
Remove libmail-imaptalk-perl Configurations and Data
To remove libmail-imaptalk-perl configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libmail-imaptalk-perl
Remove libmail-imaptalk-perl configuration, data, and all of its dependencies
We can use the following command to remove libmail-imaptalk-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmail-imaptalk-perl
References
Summary
In this tutorial we learn how to install libmail-imaptalk-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.