# How to go back to correct version of rocky linux 8.9 kernel?

**URL:** <https://forums.rockylinux.org/t/how-to-go-back-to-correct-version-of-rocky-linux-8-9-kernel/13398>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-8\
**Created:** [March 31, 2024, 5:59pm UTC](https://forums.rockylinux.org/t/how-to-go-back-to-correct-version-of-rocky-linux-8-9-kernel/13398 "2024-03-31T17:59:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![luowwei](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@luowwei](https://forums.rockylinux.org/u/luowwei)\
**Post date:** [March 31, 2024, 5:59pm UTC](https://forums.rockylinux.org/t/how-to-go-back-to-correct-version-of-rocky-linux-8-9-kernel/13398/1 "2024-03-31T17:59:33Z")

</div>

Hi, i built a new server and installed rocky 8.9. My problem is that i am using a wrong version of kernel.

```auto
uname -a
Linux xxx 5.4.269-1.el8.elrepo.x86_64 #1 SMP Fri Feb 23 16:05:47 EST 2024 x86_64 x86_64 x86_64 GNU/Linux

```

while the correct kernel of 8.9 is something like

```auto
4.18.0-513.18.1.el8_9.x86_64

```

i receive this server Feb 28 2024 and installed rocky 8.9. Maybe the guy help me build my machine installed this kernel. Today when i finish install nvidia gpu driver however nvidia-smi fail to communicate with the NVIDIA driver. When i try to load driver using `sudo modprobe nvidia` it gives `modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.4.269-1.el8.elrepo.x86_64`. And i found i am in a wrong kernel. Could anyone help me to get back to normal rocky linux 8.9 kernel? (i have /lib/modules/4.18.0-513.5.1.el8\_9.x86\_64, and the driver is installed there).

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [March 31, 2024, 6:10pm UTC](https://forums.rockylinux.org/t/how-to-go-back-to-correct-version-of-rocky-linux-8-9-kernel/13398/2 "2024-03-31T18:10:45Z")

</div>

What kernel packages do you have?

```auto
dnf list installed kernel\*

```

---

<div class="post-metadata">

**Author:** ![luowwei](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@luowwei](https://forums.rockylinux.org/u/luowwei)\
**Post date:** [March 31, 2024, 6:13pm UTC](https://forums.rockylinux.org/t/how-to-go-back-to-correct-version-of-rocky-linux-8-9-kernel/13398/3 "2024-03-31T18:13:02Z")

</div>

> [@jlehtone](#):
>
> ```auto
> dnf list installed kernel\*
> 
> ```

hi thank you for your reply. 🙂  
the result is:

```auto
kernel.x86_64 4.18.0-513.5.1.el8_9 @anaconda     
kernel.x86_64 4.18.0-513.18.1.el8_9 @baseos       
kernel-core.x86_64 4.18.0-513.5.1.el8_9 @anaconda     
kernel-core.x86_64 4.18.0-513.18.1.el8_9 @baseos       
kernel-devel.x86_64 4.18.0-513.18.1.el8_9 @baseos       
kernel-headers.x86_64 4.18.0-513.18.1.el8_9 @baseos       
kernel-lt.x86_64 5.4.269-1.el8.elrepo @elrepo-kernel
kernel-lt-core.x86_64 5.4.269-1.el8.elrepo @elrepo-kernel
kernel-lt-devel.x86_64 5.4.269-1.el8.elrepo @elrepo-kernel
kernel-lt-modules.x86_64 5.4.269-1.el8.elrepo @elrepo-kernel
kernel-modules.x86_64 4.18.0-513.5.1.el8_9 @anaconda     
kernel-modules.x86_64 4.18.0-513.18.1.el8_9 @baseos       
kernel-tools.x86_64 4.18.0-513.18.1.el8_9 @baseos       
kernel-tools-libs.x86_64 4.18.0-513.18.1.el8_9 @baseos       

```

just for your reference:

```auto
rpm -q kernel

```

returns:

```auto
kernel-4.18.0-513.5.1.el8_9.x86_64
kernel-4.18.0-513.18.1.el8_9.x86_64

```

---

<div class="post-metadata">

**Author:** ![toracat](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/toracat/32/68_2.png) [@toracat](https://forums.rockylinux.org/u/toracat)\
**Post date:** [March 31, 2024, 6:22pm UTC](https://forums.rockylinux.org/t/how-to-go-back-to-correct-version-of-rocky-linux-8-9-kernel/13398/4 "2024-03-31T18:22:11Z")

</div>

Apparently elrepo’s kernel-lt was installed on your system and it is the running kernel. To uninstall it, you’d need to boot into the distro kernel and then run:

```auto
# dnf erase kernel-lt

```

---

<div class="post-metadata">

**Author:** ![luowwei](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@luowwei](https://forums.rockylinux.org/u/luowwei)\
**Post date:** [March 31, 2024, 6:54pm UTC](https://forums.rockylinux.org/t/how-to-go-back-to-correct-version-of-rocky-linux-8-9-kernel/13398/5 "2024-03-31T18:54:59Z")

</div>

Thank you both, it has been resolved. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [May 30, 2024, 6:55pm UTC](https://forums.rockylinux.org/t/how-to-go-back-to-correct-version-of-rocky-linux-8-9-kernel/13398/6 "2024-05-30T18:55:21Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
