List or Check Installed Linux Kernels

last updated in Categories , , , , ,



RedHat / CentOS / RHEL / Fedora Linux user

You need to use standard rpm command to list installed software. Type the following command at shell prompt:
$ rpm -qa kernel


To list / display current kernel

Type the following command:
$ uname -r
$ uname -mrs


Linux 2.6.18-8.1.14.el5 x86_64

Debian / Ubuntu Linux user

Use dpkg command to list all installed kernel, enter:
$ dpkg --list | grep linux-image

ii  linux-image-generic                                 Generic Linux kernel image

Posted by: Vivek Gite


10 comment

  1. Hi,

    how to edit the boot order manually in Debian to choose a specific installed kernel to be the default one?


    1. You need to modify the bootloader configuration. If you haven’t been playing with your installation you’re using GRUB, so search for GRUB configuration tutorials.

  2. hi, i am new to linux. i want to know what happens to the older kernel when i install a new kernel? does it overwrite? also explain me how do i find the path/location for both older and newer kernels! please help!

    1. @rohit, newer installed kernels do not overwrite existing kernels unless you delete them explicitly. So you can always choose to boot with the proved old one :-)
      As for the kernels location, it depends on where do you install them… In my case I always create a /boot partition, so there you could find all those kernels…
      Best of luck!

    Still, have a question? Get help on our forum!