When using apt
to install or update packaged, Ubuntu 22.04 now pops up a Daemons using outdated libraries
box.
To disable this pop up box, edit
vim /etc/needrestart/needrestart.conf
change
#$nrconf{restart} = 'i';
to
$nrconf{restart} = 'a'; # restart the services automatically
how would one disable this prompt interactively?
most of the time it's just an anoyance, but I run a long script of apt-get commands that is always followed by a system reboot.
in this case I don't want the dialog to appear at all, I don't want any services to be restarted, nor do I want them listed. I just need the script to run and update/upgrade what I tell it to do.
the various solutions all seem to require editing a file, shouldn't there be a simple command line argument to supress this dialog?
thanks.