Salut,
j’utilise unattended-upgrades avec satisfaction.
parametré ainsi
root@desktop:/etc/apt/apt.conf.d# cat 02periodic
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Verbose "1";
Et j’ai même mis les mise à jour de mon navigateur Opera en automatique aussi
root@desktop:/etc/apt/apt.conf.d# cat 50unattended-upgrades
Unattended-Upgrade::Origins-Pattern {
// Codename based matching:
// This will follow the migration of a release through different
// archives (e.g. from testing to stable and later oldstable).
"o=Debian,n=jessie";
"o=Debian,n=jessie-updates";
"o=Debian,n=jessie-proposed-updates";
"o=Debian,n=jessie,l=Debian-Security";
"o=Opera Software ASA,n=stable,l=The Opera web browser";
Et de toutes facons tu pourras tracer tout ça dans /var/log/unattended-upgrades
root@desktop:/var/log/unattended-upgrades# ls
unattended-upgrades-dpkg.log unattended-upgrades.log.1.gz
unattended-upgrades-dpkg.log.1.gz unattended-upgrades.log.2.gz
unattended-upgrades-dpkg.log.2.gz unattended-upgrades.log.3.gz
unattended-upgrades-dpkg.log.3.gz unattended-upgrades-shutdown.log
unattended-upgrades.log
Et tu peux le tester pour être certain que ta configuration fonctionne
root@desktop:/var/log/unattended-upgrades# unattended-upgrades -d
Paquets initialement sur la liste noire :
Initial whitelisted packages:
Démarrage du script de mise à niveau automatique
Les origines permises sont : ['o=Debian,n=jessie', 'o=Debian,n=jessie-updates', 'o=Debian,n=jessie-proposed-updates', 'o=Debian,n=jessie,l=Debian-Security', 'o=Opera Software ASA,n=stable,l=The Opera web browser']
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
fetch.run() result: 0
blacklist: []
whitelist: []
InstCount=0 DelCount=0 BrokenCount=0
Aucun paquet à mettre à niveau automatiquement
root@desktop:/var/log/unattended-upgrades#