Suppose I update the kernel of a running Debian system using apt-get upgrade linux-image-amd64
to a higher minor version number (e.g., 5.10.10
to 5.10.11
). Do I have to reboot the Debian server in order for the update to take effect?
Asked
Active
Viewed 1,121 times
2

manifestor
- 6,079
- 7
- 27
- 39
1 Answers
5
Yes, usually the kernel update is not done in-place so a reboot is needed to update the running kernel.
You might want to try needrestart
via
sudo needrestart -kr l
It will check if the correct kernel is loaded (-k
) and will only show an info and not do the restart itself (-r l
). See needrestart --help
for more info.

boppy
- 521
- 2
- 6
-
1Nice, but is checking `/var/run/reboot-required` not much easier? – manifestor Feb 10 '22 at 17:35