Skip to main content

Mise à jours automatique

Installation

apt install unattended-upgrades apt-listchanges

Lancement du service

systemctl enable unattended-upgrades
systemctl start unattended-upgrades

Configuration

Dans

nano /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Enable "1";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::AutocleanInterval "7"1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::Verbose "2";

Test de fonctionnement

unattended-upgrades --dry-run --debug

Source : https://doc.ataxya.net/books/debian/page/mise-%C3%A0-jours-automatique