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

From: Brian F. G. Bidulock
Date: Sun May 28 2006 - 06:19:50 EST


Arjan,

On Sun, 28 May 2006, Arjan van de Ven wrote:

>
> > But not the right place for the running kernel. /boot/config-`uname -r` will
> > be of the wrong architecture for the running kernel.
>
> so yes you can use --force to cause it to overwrite a file. DUH.
> Big yawn as will since this file isn't needed for anything but for a
> human to build his own kernel; if that human first does the really silly
> --force thing (which is a great way to hose your system) then he knows
> there might not be an exact match. Big Yawn(tm) :)
>

Well, Mandriva doesn't have even this problem because the architecture is
part of the kernel name.

For others its worth sanity checking

rpm -q --qf "%{ARCH}\n" --what-provides /boot/config-`uname -r`

against

uname -m

to ensure that the architecture matches.

--brian
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/