how to determine kernel version

Christopher Ness nesscg at mcmaster.ca
Wed Feb 25 22:04:30 UTC 2004


On Wed, 2004-02-25 at 15:14, Ed Gurski wrote:
> RPM="`rpm -qa|grep kernel-2|sort`"              # Show all installed
> kernels on this system

Your comment isn't quite right...  You'll naturally only pick up the
kernels that `rpm` knows about.  Oh and only the 2.X series by your
grep, but who has a 1.X series kernel running these days?

An implicit assumption that people only use RPM's isn't exactly wrong
(it's probably right for most) but it won't show ALL the installed
kernels.

You could stat out the directory's in /lib/modules/ and that should give
you all the kernels, unless you do a monolithic kernel with no modules! 
:)

Cheers,
Chris
-- 
Software Engineering IV,
McMaster University
PGP Public Key: http://nesser.org/pgp-key/

17:00:27 up 20:07, 2 users, load average: 0.30, 0.23, 0.15 

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040225/7b7bc559/attachment-0001.sig>


More information about the fedora-list mailing list