On RPM-based distributions (Red Hat, CentOS, Fedora, etc.), it is possible to receive update alerts for Yum via emails. This will be very practical when we don't want to enable automatic update, we just want to be alerted.

Get Started

To configure your email settings, you need first to edit /etc/yum/yum-updatesd.conf file. To do this, simply run this command in the terminal:

vim /etc/yum/yum-updatesd.conf

Next, use the following configuration:

run_interval = 86400
emit_via = email
email_to = address@domain.com

Replace address@domain.com with your own email. In the above settings, we configured the system to perform verifications every 24 hours (86400 seconds). This will prevent you from receiving too much emails.

Another interesting option is the possibility to download RPM packages, without installing them:

do_update = no
do_download = yes
do_download_deps = yes

When done, run this command to make a restart:

/etc/init.d/yum-updatesd restart 

That's it.

Post a Comment