Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The following command it is not necessary but will give you an idea of currently vmlinuz files present in your system, in my case I see 3 of them:

# ll /boot/vmlinuz*
-rwxr-xr-x. 1 root root 4602192 Jan 23 16:41 /boot/vmlinuz-3.2.1-3.fc16.x86_64
-rwxr-xr-x. 1 root root 4604688 Jan 26 04:26 /boot/vmlinuz-3.2.2-1.fc16.x86_64
-rwxr-xr-x. 1 root root 4604944 Feb 13 21:40 /boot/vmlinuz-3.2.6-3.fc16.x86_64

my current version is the latest:

# uname -r

but this other command shows what is actually the configuration of the grub system and which kernel is going to boot the machine:

# egrep ^menuentry\|^set /boot/grub2/grub.cfg
set default="0"
set timeout=1
menuentry 'Fedora (3.2.6-3.fc16.x86_64)' --class fedora --class gnu-linux --class gnu --class os {
menuentry 'Fedora (3.2.2-1.fc16.x86_64)' --class fedora --class gnu-linux --class gnu --class os {
menuentry 'Fedora (3.2.1-3.fc16.x86_64)' --class fedora --class gnu-linux --class gnu --class os {
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {

The set default="0" directive will say to use the first menu entry Fedora (3.2.6-3.fc16.x86_64)

If you want to remove the Fedora (3.2.1-3.fc16.x86_64) kernel you may proceed querying the package DB and select the right one to erase (-e option)

# rpm -qa |grep ^kernel

and remove it (them):

# rpm -e kernel-3.2.1-3.fc16.x86_64 kernel-devel-3.2.1-3.fc16.x86_64

Reboot your system and at next GRUB prompt check if the kernel-3.2.1-3 was removed.