Kernel Source Code RPM

Issues related to applications and software problems and general support
Post Reply
gerry666uk
Posts: 5
Joined: 2020/02/10 19:06:06

Kernel Source Code RPM

Post by gerry666uk » 2020/03/24 18:26:01

I am running kernel 4.18.0-147.5.1.el8_1.x86_64, and need the source code that it was built from. I can NOT find it in the supplied CentOS repos, nor in CentOS Vault.
The source RPM is probably called something like
kernel-4.18.0-147.5.1.el8_1.src.rpm
What is the proper way to get the official source RPM signed by CentOS

User avatar
TrevorH
Forum Moderator
Posts: 28026
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Kernel Source Code RPM

Post by TrevorH » 2020/03/24 19:38:01

CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

gerry666uk
Posts: 5
Joined: 2020/02/10 19:06:06

Re: Kernel Source Code RPM

Post by gerry666uk » 2020/03/25 00:14:13

Thanks, this was helpful to see where the URL was going wrong in the built-in source repos. The baseurl is using variables, but these variables point to the wrong place in the CentOS Vault.

The "solution" was to remove 'contentdir' and replace 'releasever' with hard coded '8.1.1911'

Code: Select all

/etc/yum.repos.d
vi CentOS-Sources.repo
#baseurl=http://vault.centos.org/$contentdir/$releasever/BaseOS/Source/
baseurl=http://vault.centos.org/8.1.1911/BaseOS/Source/
This means I can now use DNF to see multiple versions of the sources for BaseOS.
(Of course, hard coding '8.1.1911' is the wrong way to fix it).

Post Reply

Return to “CentOS 8 - General Support”