≡ Menu

linux image

Ubuntu Linux: Upgrade Linux Kernel

Q. How do I upgrade my Linux kernel version under Ubuntu Linux 7.04 / 7.10?

A. You can use any one of the following method:
(a) Command Line Tools - apt-get

(b) GUI tool

apt-get command - Upgrade Linux Kernel

Open terminal and type the following commands:
$ sudo apt-get update
Now search kernel version:
$ apt-cache search kernel-image
Now install kernel by explicitly specifying version number:
$ sudo apt-get install linux-image-2.6.xx-yy-generic
Replace xx.yy with kernel version number. Reboot the system.

GUI tools

This is recommended method for most user. Click on System > Administration > Update Manager > Click on Check button > Apply all updates including kernel.

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