[CentOS] rpm -qa not displaying sources

Wed Jun 24 12:10:51 UTC 2009
James Pearson <james-p at moving-picture.com>

Chadley Wilson wrote:
> Hi All,
> 
> I must have missed something here.
> 
> I installed my kernel source using rpm -ivh kernel-`uname -r`.el5.src.rpm
> it installs perfectly, without error, but if I cd to the /usr/src/redhat folder, all I get is SOURCES and SPECS...

This is correct - SRPMS install, by default, into /usr/src/redhat - the 
source files go into /usr/src/redhat/SOURCES and the spec files go into 
/usr/src/redhat/SPECS

> rpm -qa | grep kernel
> 
> doesn't return the kernel source rpm I installed only the kernel, devel and headers.  And I can't find the actual kernel source folder....
> thanks

SRPMS are not added to the RPM database

The 'kernel source folder' is /usr/src/redhat/SOURCES

James Pearson