How to Install and Uninstall kernel-devel.x86_64 Package on Amazon Linux 2

Last updated: February 06,2025

1. Install "kernel-devel.x86_64" package

Here is a brief guide to show you how to install kernel-devel.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install kernel-devel.x86_64

2. Uninstall "kernel-devel.x86_64" package

In this section, we are going to explain the necessary steps to uninstall kernel-devel.x86_64 on Amazon Linux 2:

$ sudo yum remove kernel-devel.x86_64 $ sudo yum autoremove

3. Information about the kernel-devel.x86_64 package on Amazon Linux 2

Loaded plugins: ovl, priorities
Available Packages
Name : kernel-devel
Arch : x86_64
Version : 4.14.275
Release : 207.503.amzn2
Size : 13 M
Repo : amzn2-core/2/x86_64
Summary : Development package for building kernel modules to match the
: kernel
URL : http://www.kernel.org/
License : GPLv2 and Redistributable, no modification permitted
Description : This package provides kernel headers and makefiles sufficient to
: build modules against the kernel package.