This tutorial provides instructions for upgrading the Linux kernel to version 6.x on Rocky Linux 8, allowing you to take advantage of new features, enhancements, and improved hardware support.
rocky linuxkernel
Micro
VPS
1
vCPU
2 GB
Memory
20 GB
NVMe Disk
1024 GB
Traffic
4.90€
/month
* Up to 6GB RAM, 60GB NVMe Disk Space and 1Gbit/s Network Speed
#### Prerequisites
Before you begin, ensure you have:
- A server running Rocky Linux 8 (This guide is tested with Rocky Linux 8)
- Access to a terminal window with sudo privileges
- Basic familiarity with the command line
#### Step 1: Check Current Kernel Version
First, check the currently installed kernel version on your Rocky Linux 8 system:
```bash
uname -r
```
#### Step 2: Add ELRepo Repository
ELRepo provides updated kernel packages for Enterprise Linux distributions like Rocky Linux. Add the ELRepo repository:
```bash
sudo dnf install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
```
#### Step 3: List Available Kernel Versions
List available kernel versions from the ELRepo repository:
```bash
sudo dnf search kernel-ml
```
Identify the latest stable kernel version (e.g., kernel-ml-5.16.x86_64).
#### Step 4: Install the Latest Kernel
Install the latest mainline kernel version from ELRepo (replace `` with the actual version):
```bash
sudo dnf install kernel-ml-
```
#### Step 5: Update GRUB Configuration
Update GRUB to include the newly installed kernel:
```bash
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
```
#### Step 6: Reboot Your System
Reboot your Rocky Linux 8 system to apply the kernel changes:
```bash
sudo reboot
```
#### Step 7: Verify Kernel Version
After rebooting, verify that the system is running the new kernel:
```bash
uname -r
```
This should display the newly installed kernel version.
#### Conclusion
You have successfully upgraded the Linux kernel to version 6.x on Rocky Linux 8. Enjoy the new features and improved performance offered by the updated kernel.
**Additional Resources:**
- **ELRepo Documentation:** [https://elrepo.org/](https://elrepo.org/)
- **Rocky Linux Documentation:** [https://docs.rockylinux.org/](https://docs.rockylinux.org/)