List or Check Installed Linux Kernels

by on October 11, 2007 · 7 comments· LAST UPDATED October 11, 2007

in , ,

Q. How do I list all installed kernel on Linux operating system? How do I find out current kernel version?

A. You can use standard package listing command to list installed kernels.

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
Output:

kernel-2.6.18-4.1.15.el5
kernel-2.6.18-8.1.14.el5
kernel-2.6.18-8.1.10.el5

To list / display current kernel

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

Output:

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
Output:

ii  linux-image-2.6.20-15-generic        2.6.20-15.27                           Linux kernel image for version 2.6.20 on x86/
ii  linux-image-2.6.20-16-generic        2.6.20-16.32                           Linux kernel image for version 2.6.20 on x86/
ii  linux-image-generic                  2.6.20.16.28.1                         Generic Linux kernel image
TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 7 comments… read them below or add one }

1 Alamgir June 12, 2009 at 12:53 pm

thanks ! important information.

Reply

2 krishan kumar singh October 7, 2009 at 5:37 pm

hi,

it’s working thanks for information

Regards

krishan kumar singh

Reply

3 jaydeep July 19, 2010 at 9:10 am

hey that works for Ubuntu…!

Reply

4 visitor September 4, 2013 at 7:43 pm

Hi,

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

Thanks.

Reply

5 Erathiel January 16, 2014 at 8:32 am

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.

Reply

6 visitor January 16, 2014 at 9:12 am

yes,
I just want to know the grub.cnfg path to edit it in Debian.

Reply

7 rohit July 28, 2014 at 8:54 am

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!

Reply

Leave a Comment

Tagged as: , , , , , , , , , , , , ,

Previous Faq:

Next Faq: