I have too many kernels in the Grub menu.Since I am using the latest one without any problems I would like to remove some of them.What is the safest way to remove those? I have 26.32.21 26.32.22 26.32.23 26.32.24 and the one I am booting to:26.32.25 Should I leave the first one and the latest two? If I use synaptic I see 3 entries for 26.32.22 which are linux headers and linux headers generic and linux image,do I have to remove all three for 1 kernel? Maybe I should install and use ubuntu tweak? Computer janitor only shows 26.32.21 for removal.
You remove them in Synaptic. Enter in quick find the number for the kernel you want to remove eg.2.6.32-23 Then proceed as follows: Find the "linux-image" and "linux-headers" files for the applicable kernel (example - linux-image-2.6.32-23 or "linux-image-2.6.32-23-generic). Right click and select "Mark for Complete Removal" and then press the Apply main menu button. The kernels will be removed from your system and from the Grub menu. If you are not sure of the kernel you are currently using, in a terminal type "uname -r". Grub will be updated automatically no need to run update-grub. Those marked green in my sshot are the ones to remove. It's only to show you, I always keep the last 2 i.e. 2.6.32-24 and of course the latest one 2.6.32-25
i used to keep 2 or 3 kernels rest i uninstall they help me to boot many times when i messed with fedora in latest kernel mode. like ocky said its best to keep atleast 2 kernels
I once installed an unstable kernel (on my hardware anyways) & deleted the older kernel right away. Big mistake. Now I run the newer kernel & keep the older kernel for a while. Then everything being OK with the newer kernel. Then I uninstall the older kernel.
one way like ocky said second easy and best way which cleans kernel related files as well is ubuntu tweak which linux for all already mentioned
I would like to install ubuntu tweak,as I see most of you are using that program.Since it is not in the ubuntu software center should I add the repository from its home page as:sudo add-apt-repository ppa:tualatrix/ppa or should I install the latest deb from the home page.
i use ppa but do not all download all type software that given in ubuntu tweak only few knows ones like skype...google chrome ..etc also added their ppa