Re: How to check if kernel sources are installed on a system?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 28 May 2006 20:12:44 +0200 Arjan van de Ven wrote:

> On Sun, 2006-05-28 at 13:52 -0400, Lee Revell wrote:
> > On Sun, 2006-05-28 at 19:03 +0200, Arjan van de Ven wrote:
> > > On Sun, 2006-05-28 at 15:03 +0200, Heiko Carstens wrote:
> > > > > > > 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? How
> > > > > > > about debian based distros?. There doesn't seem to be a a single
> > > > > > > conherent naming scheme.  
> > > > > > 
> > > > > > I'd really like to see a distro-agnostic way to retrieve the kernel
> > > > > > configuration.  /proc/config.gz has existed for soem time but many
> > > > > > distros inexplicably don't enable it.
> > > > > 
> > > > > /boot/config-`uname -r`
> > > > 
> > > > What's the reason for distros to disable /proc/config.gz?
> > > 
> > > what would be a reason to ENable it???
> > > it's double functionality that does take memory away...
> > > 
> > 
> > It sounds like there is in fact no distro agnostic way to retrieve the
> > kernel config 
> 
> /boot/config-`uname -r` goes a long way, and yes I'm ignoring the "but
> users CAN clobber the file if they use enough violence against their
> packaging system" argument entirely. That's just a bogus one.
> 
> Also... why would there really be a need for such a way? Not for
> building anything for sure.... it's for the human. And the human seems
> to just find it already (and again the boot file works well in practice
> it seems)

You may be correct now but a few years ago when /proc/config.gz
was developed, there were lots of distros that did not provide
/boot/config* files.

---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux