LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-12-2004, 12:06 PM   #1
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Rep: Reputation: 30
Uninstall A Kernel


I am not really liking kernel 2.6 at least for what i did so I would like to remove it and just have my 2.4.45 kernel how do I do this? I need a newby guide to uninstalling a kernel..
 
Old 04-12-2004, 12:10 PM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
When you installed it, you should have included an entry in your boot menu for the old kernel. Then all you have to do is remove 2.6 from the boot menu. If the 2.4 is not there, look in the /boot directory for it's kernel image file, and add an entry for it in your bootloader.
 
Old 04-12-2004, 12:11 PM   #3
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
If you didn't delete them, your old kernels should still be in /boot.

So it's just a matter of editing your /etc/lilo.conf file and referring your old kernel image.

Code:
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/hda2
  label = Linux
  read-only
image = /boot/vmlinuz-safe
  root = /dev/hda2
  label = Safe
  read-only
Tips are bolded
 
Old 04-12-2004, 12:23 PM   #4
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Original Poster
Rep: Reputation: 30
I have that all done.. I just want to remove the kernel 2.6 for space issues. Not that i have any but incase...
 
Old 04-12-2004, 12:25 PM   #5
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
just delete the 2.6 kernel directory in /usr/src
 
Old 04-12-2004, 12:26 PM   #6
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Then delete the kernel image file for 2.6 (it's probably in /boot).
 
Old 04-12-2004, 12:27 PM   #7
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Original Poster
Rep: Reputation: 30
I know theres more places than just that... Isnt there.. I thought i read some thread that theres more places to remove it. preferably id like a command to uninstall it just like you install it like make unintstall or something like that i know that probably isnt a command but i want to do it in the console..
 
Old 04-12-2004, 12:29 PM   #8
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
You should remove the modules too, not sure how to do that though (rm -r /lib/modules/2.6 ?). Other than that, that's all you need to remove.
 
Old 04-12-2004, 12:31 PM   #9
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Original Poster
Rep: Reputation: 30
Could you give me a guide to uninstall via konsole? Its just i prefer doing stuff there as i seem to have fewer problems with anything.
 
Old 04-12-2004, 02:00 PM   #10
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
Just remove the kernel in boot, source in src and module directory in modules.
 
Old 04-12-2004, 04:19 PM   #11
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
remove the kernel (vmlinuz), config, and system.map in /boot
Make sure you have(or get) the old ones that go with your old kernel to put back.
You don't have to have the config file but you do need the system.map
rm -rf /lib/modules/2.6.x
rm -rf /usr/src/2.6.x
 
Old 04-12-2004, 06:17 PM   #12
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
Not sure if it works on the kernel but might be worth a try. in the console go inside the folder for the kernel where it was built and type
make uninstall

It works on some software that you build.
 
Old 04-12-2004, 06:53 PM   #13
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
On average, the kernel module dir size would be roughly 1MB to 3MB.

An average kernel would be roughly 1MB to 1.5MB in size.

So your space saving would be 5MB at most per kernel build removed.

Are you really that desperate to save space?
 
Old 04-13-2004, 07:03 AM   #14
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
A kernel may not be big, and the modules may not be big either, but when you compile the source code directory swells in size dramatically (by 100's of M). So if you're finished compiling stuff, I suggest you run 'make mrproper' to delete the extra stuff, or just delete the whole directory outright.
 
Old 04-13-2004, 10:22 AM   #15
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
BTW, the /lib/modules dir is 7-8MB with many modules compiles as in use of bare.i config for standard Slackware kernel-modules package.
 
  


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
Make uninstall kernel? johncsl82 Linux - Newbie 2 05-02-2006 11:31 AM
How do I uninstall a previous kernel? tlawlessrr Linux - Newbie 1 07-10-2004 10:33 PM
HOWTO uninstall the kernel 2.6.0 (not rpm). NAKED_DEXTER Linux - Newbie 4 03-07-2004 06:47 PM
Uninstall custom kernel? Pathian Linux - General 2 12-23-2003 02:07 PM
uninstall kernel-source-2.4.7-12 gogo Linux - General 1 12-03-2001 02:41 PM

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

All times are GMT -5. The time now is 01:36 AM.

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