How to check installed Linux Kernels

Some times you might want to check or view the list of installed Kernels on your Linux systems. If you have no idea how to do it, read on.

Check installed Linux Kernels

On RHEL / CentOS / Scientific Linux / Fedora:

Open up your Terminal, and run the following command to view the installed Linux Kernels:

# rpm -qa kernel

Or,

# rpm -qa | grep -i kernel

Sample output:

kernel-tools-libs-3.10.0-123.9.3.el7.x86_64
kernel-3.10.0-123.9.3.el7.x86_64
kernel-3.10.0-123.el7.x86_64
kernel-tools-3.10.0-123.9.3.el7.x86_64
kernel-ml-4.4.5-1.el7.elrepo.x86_64

root@server1:~_012

On Debian / Ubuntu / Linux Mint:

To view the list of installed Linux Kernels in DEB based systems such as Debian, Ubuntu, Linux Mint, Elementary OS, run the following command from the Terminal:

$ dpkg --list | grep linux-image

Sample output:

rc linux-image-4.2.0-16-generic 4.2.0-16.19 amd64 Linux kernel image for version 4.2.0 on 64 bit x86 SMP
ii linux-image-4.2.0-30-generic 4.2.0-30.35 amd64 Linux kernel image for version 4.2.0 on 64 bit x86 SMP
ii linux-image-4.4.0-7-generic 4.4.0-7.22 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.5.0-040500-generic 4.5.0-040500.201603140130 amd64 Linux kernel image for version 4.5.0 on 64 bit x86 SMP
rc linux-image-extra-4.2.0-16-generic 4.2.0-16.19 amd64 Linux kernel extra modules for version 4.2.0 on 64 bit x86 SMP
ii linux-image-extra-4.2.0-30-generic 4.2.0-30.35 amd64 Linux kernel extra modules for version 4.2.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-7-generic 4.4.0-7.22 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-generic 4.4.0.7.8 amd64 Generic Linux kernel image

sk@server: ~_011

On SUSE / openSUSE:

On SUSE and openSUSE, you can get the list of installed Linux kernels using command:

# rpm -qa | grep -i kernel

Sample output:

kernel-firmware-20160112git-120.1.noarch
kernel-default-4.1.15-8.1.x86_64
kernel-default-devel-4.5.0-1.1.g3c4edc5.x86_64
kernel-devel-4.5.0-1.1.g3c4edc5.noarch
kernel-default-4.5.0-1.1.g3c4edc5.x86_64
kernel-macros-4.5.0-1.1.g3c4edc5.noarch

sk@sk: ~_010

On Arch Linux:

In Arch Linux, and its derivatives, you can find the list of installed Kernels using the following command:

# pacman -Q linux

Or,

# pacman -Q | grep linux

Sample output:

archlinux-keyring 20160215-1
libutil-linux 2.27.1-1
linux 4.4.5-1
linux-api-headers 4.4.1-1
linux-firmware 20160113.40e9ae8-1
util-linux 2.27.1-1

root@server:~_013

That’s all for now.

You now know how to find out all installed kernels in your Linux system.

To find out the Linux distribution name, version and currently active Kernel details, check the following link.

Hope this guide will help you. Thanks for reading!

Cheers!!

You may also like...