Skip to content

Instantly share code, notes, and snippets.

@qzm
Created March 7, 2021 12:17
Show Gist options
  • Select an option

  • Save qzm/138c50c56e7747dab7e24f60b71983e2 to your computer and use it in GitHub Desktop.

Select an option

Save qzm/138c50c56e7747dab7e24f60b71983e2 to your computer and use it in GitHub Desktop.

Revisions

  1. qzm created this gist Mar 7, 2021.
    7 changes: 7 additions & 0 deletions yum-cron.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # Install yum-cron
    yum update -y
    yum install yum-cron -y
    sed -i 's|^download_updates = no|download_updates = yes|' /etc/yum/yum-cron.conf
    sed -i 's|^apply_updates = no|apply_updates = yes|' /etc/yum/yum-cron.conf
    sudo systemctl start yum-cron
    sudo systemctl enable yum-cron