DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian 10 | Kali Linux | Ubuntu 20.04 LTS
Posts: 382
Rep:
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.
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:
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.
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...
Distribution: Debian 10 | Kali Linux | Ubuntu 20.04 LTS
Posts: 382
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.