Mail Command Not Found on Centos

Having “mail: command not found” error on Centos? If you performed minimal install; or your hosting provider did minimal installation on CentOS, by default “mail” command cannot be run on CentOS.

Don’t worry is your system break or something, the mail command can be install via yum. Follow the step below to solve “mail: command not found” error.

1. Search for mailx from Yum repo

You will see packages listed as below;

mailx is the package we need to install, continue installation with mail package

After installation, run the mail command again

Yep, no new mail for root user for now. That’s the quick and easy way to resolve “mail: command not found” problem.