LoremIpsum
LoremIpsum

Reputation: 1862

How to install specific kernel-ml-devel by yum

I am trying to install kernel-ml-devel for debugging the kernel, the version of kernel as follow:

root@localhost:/usr/src/kernels# uname -r
5.4.142-1.el7.elrepo.x86_64
root@localhost:/usr/src/kernels# cat /etc/redhat-release 
CentOS Linux release 7.8.2003 (Core)

However, when I install the kernel-ml-kernel by yum, the wrong version is resolved:

root@localhost:/usr/src/debug# yum --enablerepo=elrepo-kernel install kernel-ml-{devel,perf}
No package kernel-ml-perf available.
Resolving Dependencies
--> Running transaction check
---> Package kernel-ml-devel.x86_64 0:5.18.1-1.el7.elrepo will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================================
 Package                                      Arch                                Version                                            Repository                                  Size
======================================================================================================================================================================================
Installing:
 kernel-ml-devel                              x86_64                              5.18.1-1.el7.elrepo                                elrepo-kernel                               14 M

Transaction Summary
======================================================================================================================================================================================
Install  1 Package

So, my question is how to install the kernel-ml-devel as same as the version I am using

Upvotes: 0

Views: 1066

Answers (1)

LoremIpsum
LoremIpsum

Reputation: 1862

According to https://unix.stackexchange.com/a/704725/180407

With Redhat/Fedora based distros normally only a single kernel package and its development subpackage are available. If you have some old version of the Linux kernel package installed you basically need to Google to find if there are mirrors which still have its development version.

Thus,we are unable to install such kernel package from yum, while there is an alternative way, install the kernel package from some other archive source, such as linux.cc.iitk.ac.in

Upvotes: 1

Related Questions