How To Install mailx on Fedora 34
Introduction
In this tutorial we learn how to install mailx
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install mailx.
Install mailx on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install mailx
using dnf
by running the following command:
sudo dnf -y install mailx
Install mailx on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the mailx
package we can use the following command:
sudo dnf remove mailx
mailx Package Contents on Fedora 34
/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/aa
/usr/lib/.build-id/aa/df0c7ba952581f2eb02bd732b2c1a655ec1ce5
/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 34 using yum and dnf.