This article is a simple reminder to enable unattended upgrade feature quickly under Debian 10.
Configuration
apt install unattended-upgrades
vi /etc/apt/apt.conf.d/50unattended-upgrades
vi /etc/apt/apt.conf.d/50unattended-upgrades
You have to activate update automatically. In that case, we made package update
and security update :
and security update :
"origin=Debian,codename=${distro_codename},label=Debian";
"origin=Debian,codename=${distro_codename},label=Debian-Security";
Unattended-Upgrade::Mail mail@toto.fr;
dpkg-reconfigure --priority=low unattended-upgrades
"origin=Debian,codename=${distro_codename},label=Debian-Security";
Unattended-Upgrade::Mail mail@toto.fr;
dpkg-reconfigure --priority=low unattended-upgrades
systemctl status unattended-upgrades.service
Note : A mail is sent every week if update occurs.
More details : https://linuxhint.com/managing_debian_unattended_upgrades/
Frequency
cat /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::Unattended-Upgrade "1";
You can check which packages are updated :
tail /var/log/dpkg.log
Set frequency
I didn't configure this feature but you could find more information :
No comments:
Post a Comment