How To Install mailx on Fedora 36

In this tutorial we learn how to install mailx in Fedora 36. mailx is Enhanced implementation of the mailx command

Introduction

In this tutorial we learn how to install mailx on Fedora 36.

What is mailx

Mailx is an enhanced mail command, which provides the functionality of the POSIX mailx command, as well as SysV mail and Berkeley Mail (from which it is derived). Additionally to the POSIX features, mailx can work with Maildir/ e-mail storage format (as well as mailboxes), supports IMAP, POP3 and SMTP protocols (including over SSL) to operate with remote hosts, handles mime types and different charsets. There are a lot of other useful features, see mailx(1). And as its ancient analogues, mailx can be used as a mail script language, both for sending and receiving mail. Besides the “mailx” command, this package provides “mail” and “Mail” (which should be compatible with its predecessors from the mailx-8.x source), as well as “nail” (the initial name of this project).

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

Install mailx on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install mailx

Install mailx on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install mailx

How To Uninstall mailx on Fedora 36

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

sudo dnf remove mailx

mailx Package Contents on Fedora 36

/etc/mail.rc
/usr/bin/Mail
/usr/bin/mail
/usr/bin/mailx
/usr/bin/mailx.mailx
/usr/bin/nail
/usr/lib/.build-id
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/3138191a81f26f311dc4ebe87e348ca98b1c12
/usr/share/doc/mailx
/usr/share/doc/mailx/AUTHORS
/usr/share/doc/mailx/COPYING
/usr/share/doc/mailx/README
/usr/share/man/man1/Mail.1.gz
/usr/share/man/man1/mail.1.gz
/usr/share/man/man1/mailx.1.gz
/usr/share/man/man1/mailx.mailx.1.gz
/usr/share/man/man1/nail.1.gz

References

Summary

In this tutorial we learn how to install mailx on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).