简体   繁体   English

内核源rpm CentOS 6.3

[英]Kernel source rpm CentOS 6.3

I have CentOS 6.3 installed. 我安装了CentOS 6.3。

cat /etc/redhat-release cat / etc / redhat-release

CentOS release 6.3 (Final) CentOS版本6.3(最终版)

uname -mrs uname-mrs

Linux 2.6.32-279.el6.x86_64 x86_64 Linux 2.6.32-279.el6.x86_64 x86_64

I am following the steps outlined in the following links to fetch and build the kernel (to enable certain features): http://wiki.centos.org/HowTos/I_need_the_Kernel_Source http://wiki.centos.org/HowTos/Custom_Kernel 我按照以下链接中概述的步骤来获取和构建内核(以启用某些功能): http//wiki.centos.org/HowTos/I_need_the_Kernel_Source http://wiki.centos.org/HowTos/Custom_Kernel

In the CentOS 6.3 vault ( http://vault.centos.org/6.3/updates/Source/SPackages/ ), following kernel source rpms are listed: 在CentOS 6.3库( http://vault.centos.org/6.3/updates/Source/SPackages/ )中,列出了以下内核源代码rpms:

kernel-2.6.32-279.1.1.el6.src.rpm
kernel-2.6.32-279.2.1.el6.src.rpm
kernel-2.6.32-279.5.1.el6.src.rpm
kernel-2.6.32-279.5.2.el6.src.rpm
kernel-2.6.32-279.9.1.el6.src.rpm
kernel-2.6.32-279.11.1.el6.src.rpm
kernel-2.6.32-279.14.1.el6.src.rpm
kernel-2.6.32-279.19.1.el6.src.rpm
kernel-2.6.32-279.22.1.el6.src.rpm

I am trying to find out, which of the above source rpm corresponds to kernel version 2.6.32-279.el6 (output of "uname -r" which does not contain the additional 2 digits of the version number in the list above). 我试图找出,上述源rpm中的哪一个对应于内核版本2.6.32-279.el6 (“uname -r”的输出,其中不包含上面列表中版本号的附加2位数字)。 Any help would be very appreciated. 任何帮助将非常感激。

Thank you, Ahmed. 艾哈迈德,谢谢你。

After much wrecking my head and tons of googling (which did not shed any light), I finally figured out the answer to my question. 经过多次破坏我的头和大量的谷歌搜索(没有任何光线),我终于找到了我的问题的答案。 I will state my answer using CentOS 6.3 as a example, same logic applies to CentOS 6.4. 我将以CentOS 6.3为例说明我的答案,同样的逻辑适用于CentOS 6.4。 If one has a fresh install of CentOS 6.3, look for the kernel source file at the following site: 如果有全新安装的CentOS 6.3,请在以下站点查找内核源文件:

http://vault.centos.org/6.3/ os /Source/SPackages/ http://vault.centos.org/6.3/ os / Source / SPackages /

The above site contains only one kernel source rpm (for kernel with the version number that does not contain the two additional digits in the version number). 上面的站点只包含一个内核源rpm(对于内核版本号不包含版本号中的两个附加数字)。 Not confusion there. 那里没有混乱。

However, if one has applied a patch to the stock 6.3 release, then depending on the patch level, the kernel version is extended (with the two digits) for which the corresponding kernel source is available at the following site: 但是,如果已将补丁应用于库存6.3版本,则根据补丁级别,扩展内核版本(使用两位数),相应的内核源可在以下站点获得:

http://vault.centos.org/6.3/ updates /Source/SPackages/ http://vault.centos.org/6.3/ updates / Source / SPackages /

--Ahmed. --Ahmed。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM