LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-20-2005, 01:50 PM   #1
Tons of Fun
Member
 
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian 10 | Kali Linux | Ubuntu 20.04 LTS
Posts: 382

Rep: Reputation: 37
How do I remove old kernel


I just installed a new kernel. I used the apt-get install kernel-image-2.6-686. The install went flawlessly, and when rebooting, the new kernel was there. My question is how do I remove the old kernel? I tried debfoster, but I had run that in the past, so the old kernel was not displayed. I also tried apt-get --purge remove 2.4.27-1-386, kernel 2.4.27-1-386, and kernel-image 2.4.27-1-386. I know there is a way to remove it, but I can't seem to remove it. Is there a way to reset debfoster so that the old kernel will be an option? I appreciate any help on this.

Thanks,

Tons of Fun
 
Old 03-20-2005, 01:54 PM   #2
cylix
Member
 
Registered: Dec 2004
Location: Ohio
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
You could always delete it from /boot and clean up your /etc/grub.conf

I tend to keep them lying around as I never know what I might want to reference.
 
Old 03-20-2005, 02:34 PM   #3
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
This will remove it:
Code:
dpkg -P kernel-image<name>
it will also remove the modules and edit grub's menu.lst entry for the old kernel.
 
Old 03-20-2005, 03:28 PM   #4
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
Quote:
Originally posted by m_yates
This will remove it:
Code:
dpkg -P kernel-image<name>
it will also remove the modules and edit grub's menu.lst entry for the old kernel.
Which is the same as going in to kpackage if you use kde and gui at all,under "installed" search your kernel and remove it.
But I use the above as quoted myself, works like a charm.
 
Old 03-21-2005, 09:07 PM   #5
salahuddin_66
Member
 
Registered: Jan 2004
Location: Dhaka, Bangladesh
Distribution: Debian, Gentoo
Posts: 283

Rep: Reputation: 30
open package manager of gnome or kde

then in the installed section just select the it and give uninstall
 
Old 03-22-2005, 03:44 AM   #6
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
The kernel installed when installing Debian can't be removed with a package manager. It's not listed.

It's what cylix says,

- remove the system.map, config, initrd.img and vmlinuz from /boot
- remove the folder with the modules from /lib/modules
- run "update-grub" or manually adjust your menu.lst

Be sure not to remove anything from your new kernel...
 
Old 03-22-2005, 11:34 AM   #7
Tons of Fun
Member
 
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian 10 | Kali Linux | Ubuntu 20.04 LTS
Posts: 382

Original Poster
Rep: Reputation: 37
I tried "dpkg -p kernel-image-2.4.7-1-386" and it stated that that kernel was not on my system, so I guess that I removed it somehow. I am currently out of town, so I was unable to try the gnome package manager (I'm using gnome). It's not a major deal if it stays, I am just trying to learn as much about Debian and Linux as I can, and I like to run a clean system. My next veture when I get back into town will be to try to configure and recompile the kernel to further customize it to my system.
I love this board. In just a few months, I have gone from complete noob unable to install Debian, to installing packages, configuring a firewall, updating the kernel, and getting nvidea drivers to work. I study the apt-get tutorial from the Debian website regularly, but I have learned the most from all of you on this site. Thanks to all who continually help, and I can't wait until I will be one of the ones helping.

Thanks,

Tons of Fun


Last edited by Tons of Fun; 03-22-2005 at 11:35 AM.
 
  


Reply



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
kernel compilation : to remove a kernel which files should be deleted b0nd Linux - Newbie 2 08-17-2005 11:35 AM
how do I remove new kernel? jmral23 Linux - Newbie 1 02-09-2005 05:48 PM
Remove a kernel Regulus Linux - Software 6 01-03-2005 11:17 PM
remove kernel collimate Linux - Newbie 4 12-03-2003 02:37 AM
How to remove old kernel? Qebex Linux - Distributions 3 09-07-2002 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:27 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
Open Source Consulting | Domain Registration