Menu Close
Settings Close

Language and Page Formatting Options

Red Hat Training

A Red Hat training course is available for RHEL 8

22.8. 禁用实时补丁流的自动订阅

当您为系统订阅由内核补丁模块提供的修复时,您的订阅 是自动 的。您可以禁用此功能,从而禁用 kpatch-patch 软件包的安装。

先决条件

  • 您有 root 权限。

流程

  1. (可选)检查所有安装的内核和您当前运行的内核:

    # yum list installed | grep kernel
    Updating Subscription Management repositories.
    Installed Packages
    ...
    kernel-core.x86_64         4.18.0-240.10.1.el8_3           @rhel-8-for-x86_64-baseos-rpms
    kernel-core.x86_64         4.18.0-240.15.1.el8_3           @rhel-8-for-x86_64-baseos-rpms
    ...
    
    # uname -r
    4.18.0-240.10.1.el8_3.x86_64
  2. 禁用内核实时补丁的自动订阅:

    # yum kpatch manual
    Updating Subscription Management repositories.

验证步骤

  • 您可以检查成功的结果:

    # yum kpatch status
    ...
    Updating Subscription Management repositories.
    Last metadata expiration check: 0:30:41 ago on Tue Jun 14 15:59:26 2022.
    Kpatch update setting: manual

其它资源

  • kpatch(1)dnf-kpatch(8)手册页