[CentOS] How do I get the kernel srpm?

Fri Apr 27 22:42:58 UTC 2018
Phil Perry <pperry at elrepo.org>

On 27/04/18 21:35, Robert Heller wrote:
> I tried to follow the work flow shown in https://wiki.centos.org/Sources, but
> it does not seem to work:
> 
> I did this:
> 
> mkdir CentOS
> pushd CentOS
> git clone https://git.centos.org/git/centos-git-common.git
> git clone https://git.centos.org/git/rpms/kernel.git
> pushd kernel/
> git checkout c6
> ../centos-git-common/get_sources.sh
> 
> And I got the message:
> 
> Missing metadata. Please run from inside a sources git repo
> 
> What am I missing?
>                                
> 

Use this guide:

https://wiki.centos.org/HowTos/I_need_the_Kernel_Source