[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?
    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
    % uname -r

    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.028 / U:1.924 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site