3

Debian jessie prompt on every apt-get upgrade, that a newer kernel was installed and a reboot is needed. How can this warning be disabled, because i want to reboot when it fits and i know that there is a newer kernel available?

And a similiar dialog is shown for "you need to restart these services because libraries were updated", which is re-shown again and again, even when i already decided "i want to restart this three ones and the two other ones should not be restarted" before.

2
  • It's not offering to perform the reboot, is it? It's just a warning; ignore it.
    – wurtel
    Dec 17, 2015 at 15:01
  • 1
    If you upgrade a lot of hosts (i.e. via apt-dater) you do not want to acknowledge the warning every time. So your advice is not really helpful.
    – allo
    Dec 18, 2015 at 12:54

1 Answer 1

6

This is done by the needrestart package.

To disable this you can create a file called /etc/needrestart/conf.d/silence_kernel.conf with the line $nrconf{kernelhints} = 0;

Other available options are listed in /etc/needrestart/needrestart.conf

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .