lkml.org 
[lkml]   [2006]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: How to check if kernel sources are installed on a system?
From
Date
On Thu, 25 May 2006 21:19:33 -0000, devmazumdar said:
> How does one check the existence of the kernel source RPM (or deb) on
> every single distribution?.
>
> We know that rpm -qa | grep kernel-source works on Redhat, Fedora,
> SuSE, Mandrake and CentOS - how about other RPM based distros?

There's no kernel-source RPM on recent Fedora. Also, there's another problem...

On my laptop at the moment:

% rpm -q kernel
kernel-2.6.16-1.2215_FC6
% uname -r
2.6.17-rc4-mm3

Did you want the vendor kernel source, or the running kernel source?

Might want to look at the symlink at /lib/modules/`uname -r`/source which
is probably as sane as it gets... (Though admittedly Fedora points it
into the wild blue yonder of /usr/src/kernels/`uname -r` which isn't
where the non-existent kernel-source RPM puts it. Getting the .src.rpm
and working from there leaves it in /usr/src/redhat/BUILD/yadda-yadda....)
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2006-05-25 23:32    [W:0.145 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site