Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-19-2003, 12:51 AM   #1
Registered: Aug 2003
Location: Richmond, Virginia, US
Distribution: Debian Stretch
Posts: 431

Rep: Reputation: 48
Deleting old kernel

I just re-installed and upgraded, now I already edited my /etc/grub.conf
to get the older kernel of my boot screen but as far as deleting the older kernel itself in my /boot i saw the two files


Am I correct in thinking just delete the -6 file and thats it or is that just an image (the .img) and theres something else.

...learning fast but still have windows in my head.

Old 08-19-2003, 01:00 AM   #2
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Since you are using RPMs, your RPM database will not be in sync.

Open a terminal window and type:
rpm -qa | grep kernel
Using the output, you will now be able to remove the old kernels with the following syntax.
You will need to be root in order to remove RPMs.
rpm -e kernel_rpm
Old 09-25-2003, 06:24 PM   #3
Registered: Aug 2003
Location: GMT +1(+2 summer)
Distribution: Xubuntu 7.10
Posts: 60

Rep: Reputation: 15
I'm exactly in the same case: two kernels. I wonder if I'll get the same results going to mdk control center>software manager>remove packages. Or urpme nameofpackage? To be sincere, I didn't noticed that I had two kernels installed in my machine, I don't know wich of them is working or if both of them are working toghether and what efects are espected to happen when a machine has two kernels. And what will happen if I remove the older one, please warn me about possible unwanted side efects. I'll appreciate any comment or link to get more informated.
Thanks a lot.
Old 09-25-2003, 07:11 PM   #4
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Having more than one kernel is a useful and helpful thing, simply due to the fact that if you discover that the new one doesn't work quite the way you thought it would, you can always fall back to the older one. As long as both kernels are present in lilo.conf, then during boot up you will be given a choice as to which kernel (or OS, such as in a dual boot configuration) you want to load.

The kernels themselves don't really take up much space, so my recommendation would be to simply leave them as is. Having an older/inactive version of the kernel laying around does not have any impact one way or another on performance, and as I said, if you are planning to recompile your kernel (which BTW is a really good idea) it's standard procedure to retain the existing kernel just in case you run into problems with the new one. Just my 2 cents -- J.W.
Old 09-26-2003, 11:20 AM   #5
Registered: Aug 2003
Location: GMT +1(+2 summer)
Distribution: Xubuntu 7.10
Posts: 60

Rep: Reputation: 15
Clarifiying post! That's what I was looking for. Thanks a lot J.W.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting kernel source anandt4u Linux - Software 2 06-02-2005 12:02 PM
deleting old kernel jcombs_31 Slackware 2 12-28-2004 10:40 AM
deleting old kernel trees fourleggedant Linux - Newbie 1 09-17-2004 09:42 PM
deleting old kernel after compiling a new one nixel Slackware 8 05-10-2004 08:52 PM
deleting old kernel versions Jim Miller Linux - General 3 02-04-2003 05:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration