Mises à jour automatiques
Installer DNF Automatic :
# dnf install -y dnf-automatic
Sauvegarder le fichier de configuration par défaut :
# cd /etc/dnf/
# cp -v automatic.conf automatic.conf.orig
'automatic.conf' -> 'automatic.conf.orig'
Adapter la configuration suivante :
# /etc/dnf/automatic.conf
[commands]
upgrade_type = default
random_sleep = 0
network_online_timeout = 60
download_updates = yes
apply_updates = yes
[emitters]
system_name = sd-155842.dedibox.fr
emit_via = email
[email]
email_from = root@localhost
email_to = info@microlinux.fr
email_host = localhost
Le fichier
automatic.conf
d'origine est amplement commenté.
Activer le service :
# systemctl enable dnf-automatic.timer --now
Afficher les infos :
# systemctl list-timers dnf-*
Tester manuellement :
# /usr/bin/dnf-automatic /etc/dnf/automatic.conf --timer
Documentation rédigée par un informaticien heureux élevé en plein
air.
Offrez-lui un café en cliquant sur la tasse.