Step 1: Check Current Kernel Version
Before upgrading, confirm the current kernel version:
uname -r
Step 2: Update the System
Update the system's package repository to ensure you have access to the latest kernel packages:
sudo yum update -y
Step 3: Install the Development Kernel
Install the development kernel package to provide the necessary headers and libraries for building modules or applications:
sudo yum install -y kernel-devel
Alternatively, if you need a specific version:
sudo yum install -y kernel-devel-<version>Replace <version> with the specific kernel version you want.
Step 4: Verify the Installed Kernel and Development Package
Check Installed Kernels:
rpm -qa | grep kernelEnsure kernel-devel Matches the Installed Kernel:
ls /usr/src/kernels/
Step 5: Reboot to Use the New Kernel
sudo reboot
uname -r
Happy Kernel Upgrade!!