root@cp:~# sudo apt install unattended-upgrades -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
unattended-upgrades is already the newest version (2.8ubuntu1).
unattended-upgrades set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@cp:~# systemctl status unattended-upgrades
● unattended-upgrades.service - Unattended Upgrades Shutdown
Loaded: loaded (/lib/systemd/system/unattended-upgrades.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2023-09-13 10:43:17 UTC; 21h ago
Docs: man:unattended-upgrade(8)
Main PID: 747 (unattended-upgr)
Tasks: 2 (limit: 18777)
Memory: 10.4M
CPU: 66ms
CGroup: /system.slice/unattended-upgrades.service
└─747 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
Sep 13 10:43:17 cp.mizrino.com systemd[1]: Started Unattended Upgrades Shutdown.
root@cp:~# cat /etc/apt/apt.conf.d/50unattended-upgrades | egrep -v "//|^$"
Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}";
"${distro_id}:${distro_codename}-security";
"${distro_id}ESMApps:${distro_codename}-apps-security";
"${distro_id}ESM:${distro_codename}-infra-security";
};
Unattended-Upgrade::Package-Blacklist {
};
Unattended-Upgrade::DevRelease "auto";
root@cp:~# dpkg-reconfigure unattended-upgrades
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
Configuring unattended-upgrades
-------------------------------
Applying updates on a frequent basis is an important part of keeping systems secure. By default, updates need to be
applied manually using package management tools. Alternatively, you can choose to have this system automatically
download and install important updates.
Automatically download and install stable updates? [yes/no] yes <---- Enable (활성화 하기)
root@cp:~# dpkg-reconfigure unattended-upgrades
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
Configuring unattended-upgrades
-------------------------------
Applying updates on a frequent basis is an important part of keeping systems secure. By default, updates need to be
applied manually using package management tools. Alternatively, you can choose to have this system automatically
download and install important updates.
Automatically download and install stable updates? [yes/no] no <---- Disable (비활성화 하기)
Replacing config file /etc/apt/apt.conf.d/20auto-upgrades with new version
root@cp:~#
관련
댓글