使用 yum-cron 自动更新 Linux系统

# the standard "service stop|start" commands to enable or disable yum-cron.

if [[ ! -f /var/lock/subsys/yum-cron ]]; then

exit 0

fi

# Action!

exec /usr/sbin/yum-cron

完成配置。现在你的系统将每天自动更新一次。更多细节请参照 yum-cron 的说明手册。


分享到:


相關文章: