LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-29-2005, 08:19 AM   #1
lucs
Member
 
Registered: Feb 2005
Posts: 39

Rep: Reputation: 15
how to remove a kernel


Hello,
I've got a little problem...i would like to remove my old kernel from my box. How can I do?Does anyone know a website where I can find instructions ? Thank you very much...lucs
 
Old 04-29-2005, 08:35 AM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Remove your kernel... Do you mean the source tree or the compressed kernel image? Or are you talking about the lilo menu?
Assuming you have another workable kernel, to remove the compressed image, look in /boot (or sometime / ) for a file named vmlinuz, vmlinux or bzimage. THis is your compressed kernel. Make sure you don't remove the good one!
About lilo... just make change to /etc/lilo.conf and run "lilo"
About source tree... source of the kernel are located in /usr/src usually.
 
Old 04-29-2005, 08:46 AM   #3
lucs
Member
 
Registered: Feb 2005
Posts: 39

Original Poster
Rep: Reputation: 15
Thank

Thank you very much!
 
Old 04-29-2005, 08:50 AM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
If the old kernel is the default kernel, which means it's packed,
use removepkg to remove:
kernel-ide-KERNELVERSION
kernel-modules-KERNELVERSION
kernel-source-KERNELVERSION
alsa-driver-VERSION_KERNELVERSION

but if you have enough space, just leave it there, and just remove it from lilo or grub. You never know. Maybe you'll need it some day

If this is manually installed you need to remove
the kernel image from /boot
the source directory: /usr/src/linux_KERNELVERSION
and the modules directory: /lib/modules/KERVELVERSION

Hope it helps
 
Old 05-03-2005, 12:35 AM   #5
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
what about the kernel-headers-KERNELVERSION package? Can that be removed or is it important to keep around? I've just installed 2.6.11.8 and I'm removing the default 2.4.30, I still have the 2.6.11.8 source in /usr/src
 
Old 05-03-2005, 12:42 AM   #6
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
you can remove the source in /usr/src but the kernel header is a totally different thing... it's like something telling to your C compiler (gcc) what it can handle, it has very few to do with the kernel, so don't remove this (unless you want to install another one)
 
  


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 > Slackware

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