[elrepo] Where can I get the kernel source code?

Alan Bartlett ajb at elrepo.org
Tue Jun 21 11:37:41 EDT 2016


On 21 June 2016 at 03:41, Wenjun Yao <wjseven1707 at gmail.com> wrote:
> I want to make a module in 4.2.0-1.el7.elrepo.x86_64.
> But I can't find the kernel source code or kernel-devel rpm.
> I just found  version 4.6.x or 4.4.x in /elrepo/kernel/el7/x86_64/RPMS/.
>
> Where can I get the source code or devel package for
> 4.2.0-1.el7.elrepo.x86_64, or is there any other way to make the module for
> 4.2.0-1.el7.elrepo.x86_64.
>

The normal procedure would be to go to one of the mirror sites that
carries the archive and download the required file(s) from there. Not
knowing where you are located, I am unable to suggest a suitable
mirror site for you to use.

I have checked the ELRepo Users' mailing list for the release
announcement to determine when that package set was built and see that
it was announced on the 31st August 2015 --

http://lists.elrepo.org/pipermail/elrepo/2015-August/002726.html

To simplify matters, I have temporarily made the kernel, devel,
headers and nosrc packages available for you to download --

https://elrepo.org/people/ajb/tmp/kernel-ml-4.2.0-1.el7.elrepo/kernel-ml-4.2.0-1.el7.elrepo.nosrc.rpm
https://elrepo.org/people/ajb/tmp/kernel-ml-4.2.0-1.el7.elrepo/kernel-ml-4.2.0-1.el7.elrepo.x86_64.rpm
https://elrepo.org/people/ajb/tmp/kernel-ml-4.2.0-1.el7.elrepo/kernel-ml-devel-4.2.0-1.el7.elrepo.x86_64.rpm
https://elrepo.org/people/ajb/tmp/kernel-ml-4.2.0-1.el7.elrepo/kernel-ml-headers-4.2.0-1.el7.elrepo.x86_64.rpm

If you require the actual source tarball, it is available from the
Linux Kernel Archive --

https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.2.tar.xz

I hope the above helps.

Alan.


More information about the elrepo mailing list