How To Install libesmtp-dev on Kali Linux

In this tutorial we learn how to install libesmtp-dev on Kali Linux. libesmtp-dev is LibESMTP SMTP client library (development files)

Introduction

In this tutorial we learn how to install libesmtp-dev on Kali Linux.

What is libesmtp-dev

libesmtp-dev is:

LibESMTP is a library to manage posting (or submission of) electronic mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as Exim. It may be used as part of a Mail User Agent (MUA) or another program that must be able to post electronic mail but where mail functionality is not the program’s primary purpose.

This package contains the header files and the static version of the library.

There are three methods to install libesmtp-dev 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 libesmtp-dev Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libesmtp-dev

Install libesmtp-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libesmtp-dev

Install libesmtp-dev 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 libesmtp-dev using aptitude by running the following command:

sudo aptitude -y install libesmtp-dev

How To Uninstall libesmtp-dev on Kali Linux

To uninstall only the libesmtp-dev package we can use the following command:

sudo apt-get remove libesmtp-dev

Uninstall libesmtp-dev And Its Dependencies

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

sudo apt-get -y autoremove libesmtp-dev

Remove libesmtp-dev Configurations and Data

To remove libesmtp-dev configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libesmtp-dev

Remove libesmtp-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libesmtp-dev

Dependencies

libesmtp-dev have the following dependencies:

References

Summary

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