Interview Prep/Linux/Packages, kernel and boot

A server must apply kernel security patches without rebooting. What are your options?

AdvancedScenarioPackages, kernel and boot
Answer

Situation read → Live patching.

What I'd do →

  • RHEL: kpatch (dnf install kpatch-patch-$(uname -r | ...), kpatch list).
  • Ubuntu: Livepatch via pro enable livepatch, canonical-livepatch status.
  • Still plan regular reboots, because live patches cover only selected critical fixes.

Why → Live patching replaces vulnerable functions in the running kernel, buying time until a maintenance window.

Interview tip → The senior answer: design for reboots (redundancy, draining) so you don't depend on live patching.

All Linux questions Roadmap: Linux

More on Packages, kernel and boot