I need to install a specific kernel version (5.14.0-284.30.1.el9_2.x86_64) on R9.2- how to do?

Hi-

I need to install a specific kernel version on R9.2- how to do?
Rocky 9.2 comes with
5.14.0-284.11.1.el9_2.x86_64

I need to install:
5.14.0-284.30.1.el9_2.x86_64

Yum/DNF wants to install a later version (5.14.0-427.18.1.el9_4) which is not desired.

Please let me know the complete procedure for installing the slightly newer kernel that I am looking to install. Reason that the specific kernel needed is related to devops considerations and their team’s request.

Thank you.

You should let that team know that 9.2 is end of life and has been for a year. Rocky Linux Release and Version Guide - Rocky Linux Wiki

With that said, there is no procedure. They can download the kernel packages manually from kojidev.rockylinux.org and install it.

Hi, you can try with
dnf --showduplicates list <package name>
and see if this version is up on your repo, if not just download manually as @nazunalika said and install.

Overall, DNF tends to show/install latest, but can show all and install any. Compare:

dnf list kernel
dnf list --showduplicates kernel

If 5.14.0-284.30.1.el9_2 is on the list (is in enablerd repositories), then it can be requested explicitly:

dnf install kernel-5.14.0-284.30.1.el9_2

But as said, if you are not selling to RHEL 9.2 EUS customers, then don’t dig zombies.

Forgive my confusion- but I’m getting a ton of errors trying to manually dl/install the x86_64 packages i see on my other hosts with the same .30 kernel version, ie.:

[root@hostname]# yum install kernel-5.14.0-284.30.1.el9_2.x86_64.rpm
Last metadata expiration check: 2:30:13 ago on Wed 29 May 2024 06:21:30 AM PDT.
Error:
Problem: conflicting requests

  • nothing provides kernel-core-uname-r = 5.14.0-284.30.1.el9_2.x86_64 needed by kernel-5.14.0-284.30.1.el9_2.x86_64
  • nothing provides kernel-modules-core-uname-r = 5.14.0-284.30.1.el9_2.x86_64 needed by kernel-5.14.0-284.30.1.el9_2.x86_64
  • nothing provides kernel-modules-uname-r = 5.14.0-284.30.1.el9_2.x86_64 needed by kernel-5.14.0-284.30.1.el9_2.x86_64
    (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

and

[root@hostname]# yum install kernel-modules-core-5.14.0-284.30.1.el9_2.x86_64.rpm
Last metadata expiration check: 2:34:36 ago on Wed 29 May 2024 06:21:30 AM PDT.
Error:
Problem: conflicting requests

  • nothing provides kernel-uname-r = 5.14.0-284.30.1.el9_2.x86_64 needed by kernel-modules-core-5.14.0-284.30.1.el9_2.x86_64
    (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

there seems to be a procedure that i am missing. which packages do i need? what order are they to be installed? thanks again!

Look at output of dnf rq --installonly --latest=1
That list of packages (but desired version).

Since they are not in repos, you have to have all the files in the same ‘dnf install’ command.

That’s it- had to list all rpms/wildcard them- silly me. Thank you!

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