Red hat / CentOS / Fedora Send Yum Package Update Notification Via Email

To send package update notifications via email on a Red Hat/CentOS/Fedora system, you can use the yum-cron package, which is part of the yum-utils package.

Here’s how to set up yum-cron to send email notifications:

  1. Install the yum-cron package:
sudo yum install yum-cron
  1. Open the /etc/yum/yum-cron.conf file for editing:
sudo vi /etc/yum/yum-cron.conf
  1. Change the following parameters in the configuration file:
update_messages = yes
email_from = root@example.com
email_to = user@example.com

Set update_messages to “yes” to enable update notifications. Replace root@example.com with the email address that the notification will be sent from, and replace user@example.com with the email address that the notification will be sent to.

  1. Save and exit the file.
  2. Start the yum-cron service:
sudo systemctl start yum-cron

Now, when updates are available for installation, yum-cron will send an email notification to the configured email address.

Leave a Comment