Verified on a fresh container (with the conf then removed to show the difference):
root@needrestart-nrconf:~# dpkg -l needrestart | tail -n 1
ii needrestart 3.6-7ubuntu4.1 all check which daemons need to be restarted after library upgrades
root@needrestart-nrconf:~# e^C
root@needrestart-nrconf:~# echo '$nrconf{restart} = "l";' > /etc/needrestart/conf.d/listmode.conf
root@needrestart-nrconf:~# apt reinstall libc6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 3263 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libc6 amd64 2.39-0ubuntu8.2 [3263 kB]
Fetched 3263 kB in 0s (20.3 MB/s)
Preconfiguring packages ...
(Reading database ... 34412 files and directories currently installed.)
Preparing to unpack .../libc6_2.39-0ubuntu8.2_amd64.deb ...
Unpacking libc6:amd64 (2.39-0ubuntu8.2) over (2.39-0ubuntu8.2) ...
Setting up libc6:amd64 (2.39-0ubuntu8.2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.2) ...
Disabling Ubuntu mode, explicit restart mode configuredScanning processes... [ Scanning processes...
Scanning candidates...
Service restarts being deferred:
/etc/needrestart/restart.d/dbus.service
systemctl restart systemd-logind.service
systemctl restart unattended-upgrades.service
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@needrestart-nrconf:~# rm /etc/needrestart/conf.d/listmode.conf
root@needrestart-nrconf:~# apt reinstall libc6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 3263 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libc6 amd64 2.39-0ubuntu8.2 [3263 kB]
Fetched 3263 kB in 0s (17.3 MB/s)
Preconfiguring packages ...
(Reading database ... 34412 files and directories currently installed.)
Preparing to unpack .../libc6_2.39-0ubuntu8.2_amd64.deb ...
Unpacking libc6:amd64 (2.39-0ubuntu8.2) over (2.39-0ubuntu8.2) ...
Setting up libc6:amd64 (2.39-0ubuntu8.2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.2) ...
Scanning processes...
Scanning candidates...
Verified on a fresh container (with the conf then removed to show the difference):
root@needrestar t-nrconf: ~# dpkg -l needrestart | tail -n 1 t-nrconf: ~# e^C t-nrconf: ~# echo '$nrconf{restart} = "l";' > /etc/needrestar t/conf. d/listmode. conf t-nrconf: ~# apt reinstall libc6 archive. ubuntu. com/ubuntu noble-updates/main amd64 libc6 amd64 2.39-0ubuntu8.2 [3263 kB] 2.39-0ubuntu8. 2_amd64. deb ...
ii needrestart 3.6-7ubuntu4.1 all check which daemons need to be restarted after library upgrades
root@needrestar
root@needrestar
root@needrestar
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 3263 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://
Fetched 3263 kB in 0s (20.3 MB/s)
Preconfiguring packages ...
(Reading database ... 34412 files and directories currently installed.)
Preparing to unpack .../libc6_
Unpacking libc6:amd64 (2.39-0ubuntu8.2) over (2.39-0ubuntu8.2) ...
Setting up libc6:amd64 (2.39-0ubuntu8.2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.2) ...
Disabling Ubuntu mode, explicit restart mode configuredScanning processes... [ Scanning processes...
Scanning candidates...
Services to be restarted: getty.service journald. service networkd. service resolved. service udevd.service
systemctl restart console-
systemctl restart cron.service
systemctl restart packagekit.service
systemctl restart polkit.service
systemctl restart rsyslog.service
systemctl restart systemd-
systemctl restart systemd-
systemctl restart systemd-
systemctl restart systemd-
systemctl restart udisks2.service
Service restarts being deferred: rt/restart. d/dbus. service logind. service upgrades. service
/etc/needresta
systemctl restart systemd-
systemctl restart unattended-
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host. t-nrconf: ~# rm /etc/needrestar t/conf. d/listmode. conf t-nrconf: ~# apt reinstall libc6 archive. ubuntu. com/ubuntu noble-updates/main amd64 libc6 amd64 2.39-0ubuntu8.2 [3263 kB] 2.39-0ubuntu8. 2_amd64. deb ...
root@needrestar
root@needrestar
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 3263 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://
Fetched 3263 kB in 0s (17.3 MB/s)
Preconfiguring packages ...
(Reading database ... 34412 files and directories currently installed.)
Preparing to unpack .../libc6_
Unpacking libc6:amd64 (2.39-0ubuntu8.2) over (2.39-0ubuntu8.2) ...
Setting up libc6:amd64 (2.39-0ubuntu8.2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.2) ...
Scanning processes...
Scanning candidates...
Restarting services... getty.service cron.service packagekit.service polkit.service rsyslog.service systemd- journald. service systemd- networkd. service systemd- resolved. service systemd- udevd.service udisks2.service
systemctl restart console-
Service restarts being deferred: rt/restart. d/dbus. service logind. service upgrades. service
/etc/needresta
systemctl restart systemd-
systemctl restart unattended-
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host. t-nrconf: ~#
root@needrestar