How To Install yum-plugin-kernel-livepatch.noarch on Amazon Linux 2

In this tutorial we learn how to install yum-plugin-kernel-livepatch.noarch in Amazon Linux 2. yum-plugin-kernel-livepatch.noarch is Yum Plugin to help install/erase the kernel-livepatches for new

Introduction

In this tutorial we learn how to install yum-plugin-kernel-livepatch.noarch on Amazon Linux 2.

What is yum-plugin-kernel-livepatch.noarch

yum-plugin-kernel-livepatch checks if a new kernel is being installed or erased as a result of an update or any other yum command. It then inserts the kernel-livepatch RPM as a dependency to the transaction. The assumption is that if kernel-livepatch is installed and enabled for one kernel, we could continue requiring it for future kernels unless disabled. We also provide a CLI for yum called kernel-livepatch, this provides a simple wrapper around enabling livepatching.

We can use yum to install yum-plugin-kernel-livepatch.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install yum-plugin-kernel-livepatch.noarch.

Install yum-plugin-kernel-livepatch.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install yum-plugin-kernel-livepatch.noarch using yum by running the following command:

sudo yum -y install yum-plugin-kernel-livepatch.noarch

How To Uninstall yum-plugin-kernel-livepatch.noarch on Amazon Linux 2

To uninstall only the yum-plugin-kernel-livepatch.noarch package we can use the following command:

sudo yum remove yum-plugin-kernel-livepatch.noarch

yum-plugin-kernel-livepatch.noarch Package Contents on Amazon Linux 2

/etc/yum/pluginconf.d/kernel-livepatch.conf
/usr/lib/yum-plugins/kernel-livepatch.py
/usr/lib/yum-plugins/kernel-livepatch.pyc
/usr/lib/yum-plugins/kernel-livepatch.pyo

References

Summary

In this tutorial we learn how to install yum-plugin-kernel-livepatch.noarch on Amazon Linux 2 using yum.