How To Install mailx on Rocky Linux 8
Introduction
In this tutorial we learn how to install mailx
on Rocky Linux 8.
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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mailx.
Install mailx 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 mailx
using dnf
by running the following command:
sudo dnf -y install mailx
Install mailx 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 mailx
using yum
by running the following command:
sudo yum -y install mailx
How To Uninstall mailx on Rocky Linux 8
To uninstall only the mailx
package we can use the following command:
sudo dnf remove mailx
mailx Package Contents on Rocky Linux 8
/bin/mail
/bin/mailx
/etc/mail.rc
/usr/bin/Mail
/usr/bin/nail
/usr/lib/.build-id
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/ee7ddbfaab39d63348ab157415227e3d74b897
/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/nail.1.gz
References
Summary
In this tutorial we learn how to install mailx
on Rocky Linux 8 using yum and dnf.