LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2008, 05:27 PM   #1
smoking81
LQ Newbie
 
Registered: Sep 2008
Posts: 8

Rep: Reputation: 0
Removing a vanilla kernel


Hello there! My question should have an easy solution but I cannot find it anywhere: I have kubuntu and installed (compiled) a vanilla kernel which I want now to remove... How could I remove the vanilla kernel? In ubuntu they usually suggest apt-get but i don't think it's the same for a vanilla kernel, isn't it?

Thanks! Bye!
 
Old 10-08-2008, 06:38 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Where/how did you build/install the kernel?

On my boxen this will remove it all:
Code:
mingdao@silas:~$ rm -rf kernel/linux-2.6.26.5/
root@silas:~# rm -rf /boot/initrd-tree/lib/modules/2.6.26.5-smp
root@silas:~# rm -rf /lib/modules/2.6.26.5-smp
root@silas:~# vim /etc/lilo.conf
(remove the following lines)
  image = /boot/vmlinuz-2.6.26.5
  initrd = /boot/initrd.gz
  root = /dev/cryptvg/root
  label = Slack-2.6.26.5
  read-only
root@silas:~# lilo
Then reboot -- kernel's gone.
 
Old 10-09-2008, 03:23 PM   #3
smoking81
LQ Newbie
 
Registered: Sep 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Bruce Hill View Post
Where/how did you build/install the kernel?

On my boxen this will remove it all:
Code:
mingdao@silas:~$ rm -rf kernel/linux-2.6.26.5/
root@silas:~# rm -rf /boot/initrd-tree/lib/modules/2.6.26.5-smp
root@silas:~# rm -rf /lib/modules/2.6.26.5-smp
root@silas:~# vim /etc/lilo.conf
(remove the following lines)
  image = /boot/vmlinuz-2.6.26.5
  initrd = /boot/initrd.gz
  root = /dev/cryptvg/root
  label = Slack-2.6.26.5
  read-only
root@silas:~# lilo
Then reboot -- kernel's gone.
i compiled it under kubuntu. it looks a bit different but I think I understood what I shall do...

thanks a lot!
Bye
 
Old 10-09-2008, 06:49 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Yeah, I tried to help a friend with Ubuntu and I agree ...
everything looks different.
 
Old 10-09-2008, 06:54 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
If it was installed with dpkg, then it should be removed with dpkg.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Vanilla kernel config gives kernel panic: Unable to find VolGroup0 bbcannon Linux - Newbie 1 09-24-2008 04:48 AM
What is Vanilla kernel ? suriyamohan Linux - General 8 08-07-2008 10:34 AM
Red Hat kernel customizations compared to vanilla kernel Z98 Red Hat 1 09-16-2007 03:27 PM
what is vanilla kernel dogslayer Linux - Kernel 1 01-30-2007 03:43 AM
Vanilla Kernel paddyjoy Linux - Newbie 3 06-08-2005 01:49 AM


All times are GMT -5. The time now is 10:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration