Skip to main content

Install an old kernel

Issue: My laptop has been acting up since my latest kernel update (at least that is what I am hoping it is).  I had run a clean-up on my machine to remove the older kernels.  I would like to re-install the most recent kernel.

Resolution:

[root@neo ~]# yum list --showduplicates | grep kernel.x86_64 | tail -2 | head -1 | awk '{ print "kernel-"$2 }' | xargs yum install


[root@neo ~]# grep 2.6.32-279.1.1.el6 /boot/grub/grub.conf 
title Red Hat Enterprise Linux Workstation (2.6.32-279.1.1.el6.x86_64)
kernel /vmlinuz-2.6.32-279.1.1.el6.x86_64 ro root=/dev/mapper/vg_neo-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_LVM_LV=vg_neo/lv_swap  KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_neo/lv_root rd_NO_DM irqpoll
initrd /initramfs-2.6.32-279.1.1.el6.x86_64.img



Alternate ending:


[root@neo ~]# yum list --showduplicates | grep kernel.x86_64 | tail -2
Unable to read consumer identity
kernel.x86_64                   2.6.32-279.1.1.el6    rhel-x86_64-workstation-6
kernel.x86_64                   2.6.32-279.2.1.el6    rhel-x86_64-workstation-6
[root@neo ~]# yum install kernel-2.6.32-279.1.1.el6


Comments