How to uninstall the old kernels in ubuntu
Everytime there is an update for the kernel, the new kernel is installed while the old one is not automaticaly uninstalled, after several kernel updates, you will find a large list of old kernels in the start grub menu . So if we got no problem with the new installed kernel, we can just delete the old ones.
Today i will show you how to uninstall the old kernels, it is important to keep at least one old kernel, so in case if you have any problem with the new one, you can then switch to the old kernel.
First use this command to see the list of the installed kernels in your Ubuntu :
$ dpkg --get-selections | grep linux-image
In my case :
Now for example try to delete the oldest one (change oldest kernel with your oldest one) :
$ sudo apt-get purge oldest-kernel
In my case :
$ sudo apt-get purge linux-image-2.6.31-14-generic
If the kernel you try to uninstall is not updated, you will got a message to update first before to continue. update then the kernel and then uninstall that old kernel and the updates using the same command above.
Important : Do not uninstall the linux-image-generic as it is necessary to receive updates of the kernel.
Thanks to guia ubuntu for this tip ( In spanish)
Like us on Facebook
We need your assistance to stay live
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- News from Kaspersky Lab: Tor is protecting criminals : In a previous article I wrote a bit about Tor. Free browser, relays bouncing your IP all over the ...1 comment |
- How To Access A LVM Drive / Partition in Ubuntu : Hey Guys, I installed Fedora on an external drive (LVM) recently and was trying to access it from U...0 comments |
- Grive: An Unofficial, Open Source Linux Client For Google Drive : A couple of months before, we have featured a Linux client for Google Drive named Syncdrive, which w...2 comments |
- Adding and Deleting Cluster Resources (corosync pacemaker) : In our previous tutorial, we have shown you how to install corosync and pacemaker. We will show y...0 comments |
- Install Satis On Ubuntu Sever 13.10/13.04 : Satis is a simple static composer repository generator. It is used in any composer.json file as i...0 comments |
- Adding and Deleting Cluster Resources (corosync pacemaker)
- News from Kaspersky Lab: Tor is protecting criminals
- Install Satis On Ubuntu Sever 13.10/13.04
- How To Access A LVM Drive / Partition in Ubuntu
- How To Disable Remember Open Files in Sublime Text 3
- Install Sublime Text 3 In Fedora Easily With Fedy
- Grive: An Unofficial, Open Source Linux Client For Google Drive
- Install nSnake Game In Terminal
- How To “Fix E: Could not open file /var/lib/dpkg/status”
- Wow! Linux Foundation To Offer Free Linux Course This Summer Worth $2,400 on EdX
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .