How To Install fetchmail on Kali Linux

In this tutorial we learn how to install fetchmail on Kali Linux. fetchmail is SSL enabled POP3, APOP, IMAP mail gatherer/forwarder

Introduction

In this tutorial we learn how to install fetchmail on Kali Linux.

What is fetchmail

fetchmail is:

fetchmail is a free, full-featured, robust, and well-documented remote mail retrieval and forwarding utility intended to be used over on-demand TCP/IP links (such as SLIP or PPP connections). It retrieves mail from remote mail servers and forwards it to your local (client) machine’s delivery system, so it can then be read by normal mail user agents such as mutt, elm, pine, (x)emacs/gnus, or mailx. The fetchmailconf package includes an interactive GUI configurator suitable for end-users.

Kerberos V and GSSAPI are supported.

Kerberos IV, RPA, OPIE and other support for some other features are available if the package is recompiled.

There are three methods to install fetchmail on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install fetchmail Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install fetchmail using apt-get by running the following command:

sudo apt-get -y install fetchmail

Install fetchmail Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install fetchmail using apt by running the following command:

sudo apt -y install fetchmail

Install fetchmail Using aptitude

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

sudo aptitude update

After updating apt database, We can install fetchmail using aptitude by running the following command:

sudo aptitude -y install fetchmail

How To Uninstall fetchmail on Kali Linux

To uninstall only the fetchmail package we can use the following command:

sudo apt-get remove fetchmail

Uninstall fetchmail And Its Dependencies

To uninstall fetchmail and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove fetchmail

Remove fetchmail Configurations and Data

To remove fetchmail configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge fetchmail

Remove fetchmail configuration, data, and all of its dependencies

We can use the following command to remove fetchmail configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge fetchmail

Dependencies

fetchmail have the following dependencies:

References

Summary

In this tutorial we learn how to install fetchmail package on Kali Linux using different package management tools: apt, apt-get and aptitude.