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.
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:
Next, use the following configuration:
run_interval = 86400
emit_via = email
email_to = firstname.lastname@example.org
Replace email@example.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: