1. 可以使用 yum info updates 指令來查詢可以可升級的套件
# yum info updates | grep Name | awk ‘{print $3}’
jasper-libs
或是
[@more@]2. 使用 yum-cron
# yum install yum-cron
3. 修改設定檔
# vim /etc/yum/yum-cron.conf
# Whether a message should be emitted when updates are available,
# were downloaded, or applied.
update_messages = yes
# Whether updates should be downloaded when they are available.
download_updates = no
# Whether updates should be applied when they are available. Note
# that download_updates must also be yes for the update to be applied.
apply_updates = no
4. 啟動 yum-cron 服務
# systemctl start yum-cron
5. 設定開機時啟動 yum-cron 服務
# systemctl enable yum-cron