LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-03-2004, 05:41 AM   #1
wrongman
Member
 
Registered: May 2004
Location: Italy
Distribution: Debian Unstable 64bit
Posts: 99

Rep: Reputation: 15
Question removing old kernel


I've upgraded my system to a new kernel, and all went perfect.. now I wonder if there is a way to safely remove the old one... do I just need to do a apt-get remove kernel-image-oldkernel?
thanks
 
Old 05-03-2004, 09:01 AM   #2
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Use "dpkg -r kernel-image-x.x.xx" or if the kernel was the originally installed one:

#$ cd /boot/
#$ ls
You can now see the System.map-x.x.xx, config-x.x.xx, vmlinuz-x.x.xx for each kernel in use. Remove the files related to the kernel you wish to remove.
#$ rm System.map-x.x.xx
#$ rm config-x.x.xx
#$ rm vmlinuz-x.x.xx
Remove the associated modules as well.
#$ rm -r /lib/modules/x.x.xx/
Update grub and modify /boot/grub/menu.lst for any custom changes.
#$ update-grub
This should do.
 
Old 05-03-2004, 09:19 AM   #3
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
I've upgraded my system to a new kernel, and all went perfect.. now I wonder if there is a way to safely remove the old one... do I just need to do a apt-get remove kernel-image-oldkernel?
thanks
********************************************************************

apt-get remove --purge kernel-image-<name of kernel>

if using grub:

update-grub

voilá!
 
  


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
removing old kernel versions ktt76 Fedora 3 12-01-2005 02:48 AM
Removing 2.4 kernel nny0000 Slackware 2 10-02-2005 03:56 AM
removing kernel source paulr1984 Linux - Newbie 3 03-12-2005 01:48 PM
removing custom Kernel ekoome Slackware 1 02-20-2004 05:42 AM
Removing Kernel Rv5 Linux - General 4 02-07-2004 09:21 AM

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

All times are GMT -5. The time now is 07:59 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