Remove the live patching package

To disable the kernel live patching solution, remove the live patching package.

Before you begin

  • You have root permissions on the system.
  • The live patching package is installed.

Procedure

  1. Select the live patching package:
    # dnf list installed | grep kpatch-patch
    kpatch-patch-6.12.0-0.el10_0.x86_64        0-0.el10        @@commandline
    ...

    The example output lists live patching packages that you installed.

  2. Remove the live patching package:
    # dnf remove kpatch-patch-6.12.0-0.el10_0.x86_64

    When a live patching package is removed, the kernel remains patched until the next reboot, but the kernel patch module is removed from disk. On future reboot, the corresponding kernel will no longer be patched.

  3. Reboot your system.
  4. Verify the live patching package is removed:
    # dnf list installed | grep kpatch-patch

    The command displays no output if the package has been successfully removed.

Results

  1. Verify the kernel live patching solution is disabled:
    # kpatch list
    Loaded patch modules:

    The example output shows that the kernel is not patched and the live patching solution is not active because there are no patch modules that are currently loaded.

Important

Currently, Red Hat does not support reverting live patches without rebooting your system. In case of any issues, contact our support team.