LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-18-2003, 11:51 PM   #1
snatale1
Member
 
Registered: Aug 2003
Location: Richmond, Virginia, US
Distribution: Debian Stretch
Posts: 423

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

initrd-2.4.20-6.img
initrd-2.4.20-19.9.img

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.

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

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

Open a terminal window and type:
Code:
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.
Code:
rpm -e kernel_rpm
 
Old 09-25-2003, 05:24 PM   #3
oski
Member
 
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, 06:11 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 84
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, 10:20 AM   #5
oski
Member
 
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.
 
  


Reply


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 11:02 AM
deleting old kernel jcombs_31 Slackware 2 12-28-2004 09:40 AM
deleting old kernel trees fourleggedant Linux - Newbie 1 09-17-2004 08:42 PM
deleting old kernel after compiling a new one nixel Slackware 8 05-10-2004 07:52 PM
deleting old kernel versions Jim Miller Linux - General 3 02-04-2003 04:02 PM


All times are GMT -5. The time now is 04:36 PM.

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