Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-20-2009, 01:43 PM   #1
Registered: Jan 2009
Location: USA
Distribution: Fedora 14 / Slackware 13.1
Posts: 85

Rep: Reputation: 20
[SOLVED] Removing Slackware kernel packages

Hey all. I'm trying to slim down my system, and realized I still have all of the default kernel packages installed -- including the entire source tree to Since compiling a new kernel is one of the first things I do when using any distribution, would it be safe to remove all of the Slackware kernel packages and the old source tree to try and free up some space? This isn't to say I'm going to use only one bleeding-edge kernel and risk it all, I always keep at least one stable backup should one of my new experiments go awry. :P Just checking with you all about it before I do something catastrophic.

Last edited by camphor; 01-27-2010 at 05:16 PM.
Old 12-20-2009, 02:22 PM   #2
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544
Sure, you can delete the stock kernel packages and sources. You seem to indicate that you understand that you should test your compiled kernel for several days before removing the stock packages.

I keep the huge kernel installed and a boot loader menu option available in case I screw up any kernel compile project. I also keep any previous version I have compiled as another backup option.

Do not remove the kernel headers package.
Old 12-20-2009, 02:49 PM   #3
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Yeah, it makes sense to keep at least the last stable kernel you built around, or just the stock huge Slackware kernel. The idea is that if you have a problem in the new kernel, you can fall back on a known-good kernel. Otherwise you would have to break out the install disc and boot up your system that way, which is sort of a hassle (especially if you don't have an optical drive installed normally...).

Of course this mainly applies during the time period right after a kernel upgrade. If you have been using your newly compiled kernel for awhile and there are no problems then you probably wouldn't need to drop back down to the stock one. Of course, for the few MBs it takes up, it is nice to have a backup.

But you don't say if the source package is the same as the kernel you have built, or if you downloaded the vanilla sources for a newer kernel release and built that. You should always keep the source tree you used to build your current kernel, as that can be required for building out of kernel modules (like binary video drivers, WiFi drivers not yet included in the kernel, etc).

Also keep in mind that you need to have the exact same source tree as the one you built the kernel for, not just the same release. In other words, if you built a custom kernel from the source package, just reinstalling that source package in the future won't let you build kernel modules for your kernel.
Old 12-20-2009, 07:19 PM   #4
Senior Member
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
I'd say keep the old kernel,just removepkg kernel-huge. Creae an entry in lilo.conf with the older kernel and keep it as "Fallback". That's what I do. You never know when things mess up.
Old 12-21-2009, 02:49 AM   #5
Registered: Sep 2009
Posts: 140

Rep: Reputation: 23

i always remove kernel-huge and kernel-generic, and compile a new kernel from /usr/src/linux

Last edited by JokerBoy; 12-23-2009 at 03:24 PM.


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
removing packages lukman Linux - Newbie 2 06-11-2006 08:02 PM
SMP Kernel Packages for Slackware ? Grunthos Slackware 15 04-02-2005 11:56 PM
Kernel 2.6.7 installation from Slackware 10 packages? plm Slackware 8 06-28-2004 12:33 PM
Removing old kernel and other packages installed DriveMeCrazy Red Hat 1 06-05-2004 09:40 PM
Removing packages in Slackware Caesar Linux - Newbie 1 06-02-2004 08:56 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration