Skip to main content

How to upgrade dev kernel on Linux


vmali
Forum|alt.badge.img+1
  • Comes here often
  • 6 comments

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!!

 

 

3 comments

coolsport00
Forum|alt.badge.img+20
  • Veeam Legend
  • 4113 comments
  • November 20, 2024

Thanks for sharing Ali! 👍🏻


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 8413 comments
  • November 20, 2024

Nice and concise steps.  Thanks for sharing Ali.


AndrePulia
Forum|alt.badge.img+6
  • Veeam Legend, Veeam Vanguard
  • 318 comments
  • November 20, 2024

Thank you for sharing 


Comment