# Whether updates should be applied when they are available, by # dnf-automatic.timer. notifyonly.timer, download.timer and # install.timer override this setting. #apply_updates = no apply_updates = yes
もし、再起動が必要なら、再起動も行う。
[commands]
# When the system should reboot following upgrades: # never = don't reboot after upgrades # when-changed = reboot after any changes # when-needed = reboot when necessary to apply changes #reboot = never reboot = when-needed
そして、更新したらメールで知らせてもらう。
[commands]
# How to send messages. Valid options are stdio, email and motd. If # emit_via includes stdio, messages will be sent to stdout; this is useful # to have cron send the messages. If emit_via includes email, this # program will send email itself according to the configured options. # If emit_via includes motd, /etc/motd file will have the messages. if # emit_via includes command_email, then messages will be send via a shell # command compatible with sendmail. # Default is email,stdio. # If emit_via is None or left blank, no messages will be sent. #emit_via = stdio emit_via = mail
送信元のメールアドレスも設定しておく。
[email]
# The address to send email messages from. #email_from = root@example.com email_from = dnf@yourdomain.com
[command_email]
# The address to send email messages from. #email_from = root@example.com email_from = dnf@kgy.sin-cos.com