LinuxQuestions.org
Review your favorite Linux distribution.
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 01-01-2015, 07:24 AM   #1
caveman86
Member
 
Registered: Nov 2014
Location: Adelaide, South Australia
Distribution: Slackware 14.1 x64, LFS 7.6 x64
Posts: 83

Rep: Reputation: 8
How I remove installed Kernels


Hi guys I am just wondering how do I go about removing Kernels that I no longer use each time I build a new kernel and I am left with old kernels I no longer use and my list of Kernels to boot is starting to get rather long. I usually edit the grub config file to remove the excess entries but I would rather remove them properly once and for all once again thanks in advance for teh help.
 
Old 01-01-2015, 07:54 AM   #2
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
I do it manually.
Just removing these stuffs:
1. Old kernel under /boot directory
2. Corresponding initramfs (if kernel was built with initramfs support)
3. Kernel modules that belongs to old kernel (located under /lib/modules directory)
4. Old kernel sources at /usr/src
After removing all the above stuffs, run grub-mkconfig to re-create grub config file.
 
1 members found this post helpful.
Old 01-01-2015, 07:57 AM   #3
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
For custom kernels I build, I just delete them from /boot and from /lib/modules. Its that simple. I also delete the source from a folder I setup for custom builds.
 
2 members found this post helpful.
Old 01-01-2015, 08:02 PM   #4
caveman86
Member
 
Registered: Nov 2014
Location: Adelaide, South Australia
Distribution: Slackware 14.1 x64, LFS 7.6 x64
Posts: 83

Original Poster
Rep: Reputation: 8
Wow that simple thank you very much for the help guyus I didn't realize it was that simple all good now I know what to do and to keep my boot list shorter I do love this forum it certainly has made my Linux life more enjoyable without a doubt cheers guys
 
Old 01-02-2015, 08:20 PM   #5
WhiteWolf1776
Member
 
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288

Rep: Reputation: 95
This helped answer all my questions... be careful tho if you are going with a 3.17 or later kernel and need bluetooth... there are issues yet to be resolved even in -current for that.

http://alien.slackbook.org/dokuwiki/...kernelbuilding

Have fun
 
Old 01-02-2015, 09:07 PM   #6
caveman86
Member
 
Registered: Nov 2014
Location: Adelaide, South Australia
Distribution: Slackware 14.1 x64, LFS 7.6 x64
Posts: 83

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by WhiteWolf1776 View Post
This helped answer all my questions... be careful tho if you are going with a 3.17 or later kernel and need bluetooth... there are issues yet to be resolved even in -current for that.

http://alien.slackbook.org/dokuwiki/...kernelbuilding

Have fun
That is actually where I learnt how to build my custom Kernels for Slackware once you learn how its amazing how much more horsepower you get out of your machine by turning off things you don't use for example I don't have a bluetooth adapter on my computer so I turned that off like SCSI etc etc and you can tweak settings for teh CPu once you trim it down so much garbage that you don't need to run isn't running everytime you boot your computer my Slackware system freshly booted into my Mate Desktop environment i use approx 200MB of Ram compared to I used to use 500+Mb of ram before I started using my own custom compiled Kernels the Alien Bobs Wiki pages are such a great useful learning resource for me and so many other slackers thats for sure
 
  


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
Is there a way to remove kernels? vibinlakshman Linux - Newbie 2 08-27-2009 07:57 AM
how to remove old kernels ashwin_cse Ubuntu 4 06-10-2007 11:23 PM
How to remove old kernels safely satimis Fedora 11 08-21-2004 08:06 AM
remove old kernels dvsOasis Slackware 1 02-14-2004 08:56 PM
how to remove old kernels? gmoney Red Hat 1 10-15-2003 05:21 AM

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

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