How To Install libesmtp on Rocky Linux 8

In this tutorial we learn how to install libesmtp on Rocky Linux 8. libesmtp is SMTP client library

Introduction

In this tutorial we learn how to install libesmtp on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libesmtp.

Install libesmtp on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove libesmtp

libesmtp Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/f2bec65e57b69bb165db8729e962e86f8242cf
/usr/lib/.build-id/85
/usr/lib/.build-id/85/0d3c1cdabe9bdcec63ab218d75728b0d8bee8a
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/b61143a96751fbc2487a9415d3b3c6167e24e7
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/14a46f91be94747b1107f01298da0c8dad162f
/usr/lib64/esmtp-plugins
/usr/lib64/esmtp-plugins/sasl-cram-md5.so
/usr/lib64/esmtp-plugins/sasl-login.so
/usr/lib64/esmtp-plugins/sasl-plain.so
/usr/lib64/libesmtp.so.6
/usr/lib64/libesmtp.so.6.1.6
/usr/share/doc/libesmtp
/usr/share/doc/libesmtp/AUTHORS
/usr/share/doc/libesmtp/COPYING.LIB
/usr/share/doc/libesmtp/NEWS
/usr/share/doc/libesmtp/Notes
/usr/share/doc/libesmtp/README

References

Summary

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