Le kernel est le noyau du système d'exploitation.
//Sur RHEL 3, 4 et 5//
==== Connaitre la version de Red Hat ====
Le fichier /etc/redhat-release vous donne la version de Red Hat
root@***:~# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 8)
aurelia@:~# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
( Oui je sais, que du récent ^_^ )
==== Connaitre le kernel utilisé par votre Red Hat ====
=== Commande uname===
root@toto:~# uname -r
2.6.9-67.ELsmp
Cette version correspond à la RHEL 4 update 6.
=== Fichier grub.conf ===
Vous pouvez aussi regarder quel noyau se charge au démarrage, au cas vous en avez plusieurs d'installés.
Pour cela, vous devez consulter le fichier /etc/grub.conf et vérifier quel noyau et en "default=0", autrement dit celui qui se chargera par défaut au démarrage.
root@***:~# more /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg. console=tty0 console=ttyS0,9600n8
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/rootvg/root console=tty0 console=ttyS0,9600n8
# initrd /initrd-version.img
#boot=/dev/sda
default=0
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console
timeout=5
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-67.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-67.ELsmp ro root=/dev/rootvg/root console=tty1 console=ttyS1,57600
initrd /initrd-2.6.9-67.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-67.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-67.EL ro root=/dev/rootvg/root console=tty1 console=ttyS1,57600
initrd /initrd-2.6.9-67.EL.img
title Red Hat Enterprise Linux AS (single mode)
root (hd0,0)
kernel /vmlinuz-2.6.9-67.EL ro root=/dev/rootvg/root single console=tty1 console=ttyS1,57600
initrd /initrd-2.6.9-67.EL.img
=== Rpm du kernel ===
Si vous voulez voir quel(s) kernel(s) est/sont installé(s) sur votre serveur :
root@***:~# rpm -qa|grep kernel
kernel-utils-2.4-8.37.15
kernel-2.4.21-47.EL
kernel-source-2.4.21-47.EL
kernel-smp-2.4.21-47.EL
kernel-hugemem-2.4.21-47.EL
kernel-utils-2.4-13.1.105
=== Répertoire /lib/module/ ===
Enfin, vous pouvez regarder dans /lib/modules
root@***:/lib/modules# ls -lrt
total 32
drwxr-xr-x 3 root root 4096 Jan 20 2009 2.6.9-67.EL
drwxr-xr-x 4 root root 4096 Dec 12 18:36 2.6.9-67.ELsmp