I am using webmin (which uses yum) to install updates on my server, and it somestimes updates kernel as well including kernel-firmware and kernel-headers. Do I need to restart the server after a kernel update?


There are at least two reasons for rebooting:

  1. You probably want to use the advantages of the newer version (security fixes)
  2. Usually during a kernel update the module tree of the old kernel is removed. Thus if you (or some script) unload a module then the system cannot load it again because it finds only the newer one on disk (if at all) and this is compiled for a different kernel and thus cannot be loaded (at least usually).
| improve this answer | |
  • 4
    On Red Hat/CentOS and Ubuntu (and all distros which are responsible about how they do kernel upgrades), #2 doesn't happen, because the old kernel package is left in place. I very much wish Debian would take the hint from them... – Paul Gear May 1 '13 at 10:51

To actually use the new kernel you will have to reboot.
No way around that.

Do you have to reboot immediately after installing the update ?
In general NOT, you can schedule the reboot for a more convenient moment.

But it is NOT a good idea to install more updates before you reboot.
Some updates have different versions depending on which kernel you are running.

And anyway: After rebooting with a new kernel always check for updates. Some of your existing packages may need a new version after the kernel update.

| improve this answer | |

It depends.

Ksplice takes care of all security updates but it depends on the updates and it's not free. You can check here for details for yum as well.

You also have the option of using kexec which will require a reboot but will skip the hardware part of the boot.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.