gpt4 book ai didi

linux - 如何通过 yum 安装特定的 kernel-ml-devel

转载 作者:行者123 更新时间:2023-12-04 19:39:18 36 4
gpt4 key购买 nike

我正在尝试安装 kernel-ml-devel 来调试内核,内核版本如下:

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)
但是,当我通过 yum 安装 kernel-ml-kernel 时,错误的版本得到了解决:
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
所以,我的问题是如何安装与我正在使用的版本相同的 kernel-ml-devel

最佳答案

根据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.


因此,我们无法从 yum 安装此类内核包,虽然有另一种方法,从其他存档源安装内核包,例如
linux.cc.iitk.ac.in

关于linux - 如何通过 yum 安装特定的 kernel-ml-devel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72473072/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com