How To Install mailx.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install mailx.x86_64
on Amazon Linux 2.
What is mailx.x86_64
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
to install mailx.x86_64
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install mailx.x86_64.
Install mailx.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install mailx.x86_64
using yum
by running the following command:
sudo yum -y install mailx.x86_64
How To Uninstall mailx.x86_64 on Amazon Linux 2
To uninstall only the mailx.x86_64
package we can use the following command:
sudo yum remove mailx.x86_64
mailx.x86_64 Package Contents on Amazon Linux 2
/bin/mail
/bin/mailx
/etc/mail.rc
/usr/bin/Mail
/usr/bin/nail
/usr/share/doc/mailx-12.5
/usr/share/doc/mailx-12.5/AUTHORS
/usr/share/doc/mailx-12.5/COPYING
/usr/share/doc/mailx-12.5/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.x86_64
on Amazon Linux 2 using yum.