# Dnf update will downgrad kernel

**URL:** <https://forums.rockylinux.org/t/dnf-update-will-downgrad-kernel/13577>\
**Category:** Rocky Linux Help & Support\
**Created:** [April 12, 2024, 8:13pm UTC](https://forums.rockylinux.org/t/dnf-update-will-downgrad-kernel/13577 "2024-04-12T20:13:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![frankofno](https://avatars.discourse-cdn.com/v4/letter/f/b9bd4f/32.png) [@frankofno](https://forums.rockylinux.org/u/frankofno)\
**Post date:** [April 12, 2024, 8:13pm UTC](https://forums.rockylinux.org/t/dnf-update-will-downgrad-kernel/13577/1 "2024-04-12T20:13:22Z")

</div>

i have installed kernel 6.8.1-1.el9.elrepo.x86\_64 - now when I issue dnf update command i see:

```auto
Installing:
 kernel x86_64 5.14.0-362.24.1.el9_3.0.1 baseos 4.6 M
 kernel-devel x86_64 5.14.0-362.24.1.el9_3.0.1 appstream 20 M

```

which would be a downgrad of the kernel, is this supposed to happen?  
what am i missing here?

---

<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:** [April 12, 2024, 9:39pm UTC](https://forums.rockylinux.org/t/dnf-update-will-downgrad-kernel/13577/2 "2024-04-12T21:39:13Z")

</div>

First, kernels are “installonly” packages. That is, “update” installs one more kernel, rather than replace the currently installed package.

Second, the name of the ELRepo package was not `kernel`, was it? Isn’t it `kernel-ml`?  
Those are two separate packages. Even on non-installonly packages that would not usually prevent either from receiving updates.

* * *

The only question is, which kernel version will be the default on bootloader’s menu?

You probably want `DEFAULTKERNEL=kernel-ml` in `/etc/sysconfig/kernel`. See [Chapter&nbsp;2.&nbsp;Specifying the RHEL kernel to run Red Hat Enterprise Linux for Real Time 9 | Red Hat Customer Portal](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_for_real_time/9/html/installing_rhel_9_for_real_time/assembly_specifying-the-kernel-to-run_installing-rhel-9-for-real-time)

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [April 12, 2024, 9:41pm UTC](https://forums.rockylinux.org/t/dnf-update-will-downgrad-kernel/13577/3 "2024-04-12T21:41:36Z")

</div>

You’ve installed a kernel that’s not in the official Rocky 9.3 repos, and Rocky is trying to install the updated 5.14 kernel. Maybe with ‘elrepo’ enabled, it knows to ignore the official repos?

---

<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:** [June 11, 2024, 9:41pm UTC](https://forums.rockylinux.org/t/dnf-update-will-downgrad-kernel/13577/4 "2024-06-11T21:41:56Z")

</div>

Closed on June 11, 2024, 9:41pm UTC

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