Kernel version management for Ubuntu systems

Source: Internet
Author: User
Tags linux

1. View Ubuntu version number:

Method One:

Cat/etc/issue

return Result:

Ubuntu 6.06.2 LTS \ \l

Method Two:

sudo lsb_release-a

return Result:

No LSB modules are available.

Distributor Id:ubuntu

Description:ubuntu 6.06.2 LTS

release:6.06

Codename:dapper

Method Three:

Cat/etc/lsb-release

return Result:

Distrib_id=ubuntu

distrib_release=6.06

Distrib_codename=dapper

distrib_description= "Ubuntu 6.06.2 LTS"

2. View Kernel version number:

Method Four:

Cat/proc/version

return Result:

Linux version 2.6.15-51-386 (buildd@palmer) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 preempt Tue Oct 21:42:16 UTC 2007

Method Five:

Uname-a

return Result:

This column more highlights: http://www.bianceng.cn/OS/Linux/

Linux jpsiteserver 2.6.15-51-386 #1 preempt Tue Oct 21:42:16 UTC 2007 i686

Method Six: Just view the kernel version

Uname-r

return Result:

2.6.15-51-386

3.ubuntu Kernel Version Management:

1. Find the kernel version that the system has installed and enter the command in the terminal:

Dpkg--get-selections | grep linux-image

The installed kernel in the system is then displayed, for example:

flc@ubuntu:~$ dpkg--get-selections | grep linux-image

Linux-image-3.0.0-12-generic Install

Linux-image-3.0.0-19-generic Install

Linux-image-3.0.0-20-generic Install

Linux-image-generic Install

dpkg--get-selections [< expression > ...] Print the list of selected packages to standard output;

grep linux-image Matching lookup;

UNAME-A view the installed Linux kernel version.

2. Uninstall the old kernel version and enter the command in the terminal:

sudo apt-get remove linux-image-3.0.0-12-generic linux-image-3.0.0-19-generic

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.