How To Install libesmtp on AlmaLinux 8

In this tutorial we learn how to install libesmtp in AlmaLinux 8. libesmtp is SMTP client library

Introduction

In this tutorial we learn how to install libesmtp on AlmaLinux 8.

What is libesmtp

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.

We can use yum or dnf to install libesmtp on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libesmtp.

Install libesmtp on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install libesmtp using dnf by running the following command:

sudo dnf -y install libesmtp

Install libesmtp on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libesmtp using yum by running the following command:

sudo yum -y install libesmtp

How To Uninstall libesmtp on AlmaLinux 8

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

sudo dnf remove libesmtp

References

Summary

In this tutorial we learn how to install libesmtp on AlmaLinux 8 using yum and dnf.