How To Install kpatch-runtime.noarch on Amazon Linux 2

In this tutorial we learn how to install kpatch-runtime.noarch in Amazon Linux 2. kpatch-runtime.noarch is Dynamic kernel patching

Introduction

In this tutorial we learn how to install kpatch-runtime.noarch on Amazon Linux 2.

What is kpatch-runtime.noarch

kpatch is a Linux dynamic kernel patching tool which allows you to patch a running kernel without rebooting or restarting any processes. It enables sysadmins to apply critical security patches to the kernel immediately, without having to wait for long-running tasks to complete, users to log off, or for scheduled reboot windows. It gives more control over up-time without sacrificing security or stability.

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

Install kpatch-runtime.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 kpatch-runtime.noarch using yum by running the following command:

sudo yum -y install kpatch-runtime.noarch

How To Uninstall kpatch-runtime.noarch on Amazon Linux 2

To uninstall only the kpatch-runtime.noarch package we can use the following command:

sudo yum remove kpatch-runtime.noarch

kpatch-runtime.noarch Package Contents on Amazon Linux 2

/usr/lib/systemd/system/kpatch.service
/usr/sbin/kpatch
/usr/share/doc/kpatch-runtime-0.9.4
/usr/share/doc/kpatch-runtime-0.9.4/COPYING
/usr/share/doc/kpatch-runtime-0.9.4/README.md
/usr/share/man/man1/kpatch.1.gz

References

Summary

In this tutorial we learn how to install kpatch-runtime.noarch on Amazon Linux 2 using yum.