yum-cron

These are the files needed to run yum updates as a cron job.

CentOS
RUN yum install -y yum-cron
Fedora
RUN dnf install -y yum-cron
click the source code to copy install yum-cron on any operating system with command-not-found.com