首页 > 其他 > 详细

Remove Old Kernels in Ubuntu 11.10 (Oneiric ocelot)

时间:2014-05-09 13:19:23      阅读:410      评论:0      收藏:0      [点我收藏+]

When you’re running Ubuntu and updating your system frequently, there is a high chance that older kernels that are no longer needed are still installed on your system. Over time, if these older kernels are not removed, precious hard disk space may be wasted and your system’s performance may suffer.

This brief tutorial will show you how to find out your current running kernel and how to remove older ones that are not being used by your system. This will help you free up some space and may also improve your system’s performance.

 

 

 

Objectives:

  • Find out your current running kernel
  • Remove older kernels
  • Enjoy!

 

To get started, press Ctrl – Alt – T to open Terminal. When it opens, run the commands below to view your current running kernel.

uname -r

bubuko.com,布布扣

 

Next, take notes of your current kernel. DO NOT REMOVE THIS!

 

bubuko.com,布布扣

 

Next, type the command below to view / list all installed kernels on your system.

dpkg --list | grep linux-image

bubuko.com,布布扣

 

Next, find all the kernels that which number are lower than your current kernel.  When you know which kernel to remove, continue below to remove it.

 

bubuko.com,布布扣

 

Finally, run the commands below to remove the kernel you selected.

sudo apt-get purge linux-image-x.x.x.x-generic

bubuko.com,布布扣

 

When you’re done, run the commands below to update grub2

sudo update-grub2

bubuko.com,布布扣

 

That’s all.

 

原文:http://www.liberiangeek.net/2011/11/remove-old-kernels-in-ubuntu-11-10-oneiric-ocelot/

Remove Old Kernels in Ubuntu 11.10 (Oneiric ocelot),布布扣,bubuko.com

Remove Old Kernels in Ubuntu 11.10 (Oneiric ocelot)

原文:http://www.cnblogs.com/veins/p/3718305.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!