≡ Menu

linux kernel image

Q. We have 4 different versions of Linux kernel installed by yum command under CentOS Linux. Currently I'm using only latest version 2.6.18-53.1.4.el5. What is the proper and suggested method to remove old kernels from a CemtOS / Debian Linux server?
[click to continue…]

List or Check Installed Linux Kernels

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


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-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                                 Generic Linux kernel image