How to add the mail command in CentOS and Fedora

- by

I was surprised to find that the mail command doesn’t work out of the box in Fedora, nor in the minimal installation of CentOS 7. Thankfully there’s an easy way to add it by installing the mailx package.

yum install mailx

That’s not the full story on how to send email from the command line of course, nor is it the only possible way to do so. I might elaborate on these details in a future article. I just wanted to make a note to remind myself of the package name that I keep forgetting.

Further Reading



If you enjoy my content, please consider supporting me on Ko-fi. In return you can browse this whole site witout any pesky ads! More details here.

Add your voice!

This site uses Akismet to reduce spam. Learn how your comment data is processed.