Redhat and kernel question

bscott at ntisys.com bscott at ntisys.com
Thu Mar 13 10:03:48 EST 2003


On 13 Mar 2003, at 9:44am, jeff.macdonald at virtualbuilder.com wrote:
> How can I tell what CPU the kernel was compiled for?

  I believe 'uname -m' will indicate what CPU the currently running kernel
was compiled for.

> It seems the query options of RPM don't show this info, or am I blind
> today?

  Not by default.  This will:

	rpm -q kernel --qf '%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n'

-- 
Ben Scott <bscott at ntisys.com>
| The opinions expressed in this message are those of the author and do  |
| not represent the views or policy of any other person or organization. |
| All information is provided without warranty of any kind.              |




More information about the gnhlug-discuss mailing list