LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-10-2006, 08:57 AM   #1
teufelhund
Member
 
Registered: Aug 2005
Location: Midwestern USA
Distribution: Slackware 10.2
Posts: 54

Rep: Reputation: 15
Deleting old kernel headers


Rhetorical question (in about 2 days it won't be so rhetorical):

If I were to upgrade my kernel from 2.4.x to 2.6.x, at what point would I be able to delete my 2.4.x kernel/source/headers? And where would I find these on a typical Slack 10.2 installation? (I know the source would be in /usr/src/linux-2.4.x...)

I obviously would have to tweak my new kernel and make sure it's stable/bootable/usable. After that, are there any other requirements? Will I need to keep my old 2.4 information for any previously-compiled software? Will I need to re-compile anything? (For instance, the nVIDIA driver insists on being recompiled every time the kernel is recompiled, even if nothing changed.)

Thanks for any comments/suggestions.

Matt
 
Old 04-10-2006, 09:49 AM   #2
lucktsm
Member
 
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155

Rep: Reputation: 30
I would keep the old kernel around. It doesn't take that much space and you may find you will want it for one thing or another later down the road. I would say once you're at the new kernel level and are happily running for a few weeks then kill it.
 
Old 04-10-2006, 09:53 AM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
You can delete the kernel source for the 2.4 kernel if you want to save space; you would only need it to compile a new 2.4 kernel or a 2.4 kernel module/driver. If you don't need to compile kernel stuff you can even run without the kernel source/headers and many distros ship without either.
You will have to recompile any kernel modules/drivers for your 2.6 kernel that you did for your 2.4 kernel. Most commonly these are your graphics card driver(nvidia or ati) and ndiswrapper if you are running a wireless card that needs it. Programs in general do not need to be recompiled as these are compiled against your C and C++ libraries with gcc, all of which will not change with your new kernel.
 
Old 04-11-2006, 07:44 AM   #4
teufelhund
Member
 
Registered: Aug 2005
Location: Midwestern USA
Distribution: Slackware 10.2
Posts: 54

Original Poster
Rep: Reputation: 15
Thanks to both of you for the information. Maybe I'll keep the 2.4 kernel around until I get bored, then delete it and see what breaks (though with your advice, the answer should be nothing).
 
Old 04-11-2006, 10:56 AM   #5
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
You shouldn't delete your kernel headers. You can delete kernel source (even I don't recommend), but not kernel headers. Kernel headers are used to compile the programs by glibc and kernel source is usually needed when you install additional drivers not supported by kernel, for example, nvidia.
 
Old 04-12-2006, 12:16 PM   #6
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally Posted by Alien_Hominid
You shouldn't delete your kernel headers. You can delete kernel source (even I don't recommend), but not kernel headers. Kernel headers are used to compile the programs by glibc and kernel source is usually needed when you install additional drivers not supported by kernel, for example, nvidia.
If he upgrades to a 2.6 kernel successfully, he should be able to delete the 2.4 kernel headers once his stable on 2.6, right?

Peace...
 
  


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
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 12:15 AM
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
Difference between kernel-headers kernel-source twinkers Debian 2 06-18-2005 11:20 AM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 06:29 PM
S.O.S i fu**ed up my kernel headers i think alekoos Slackware 0 04-27-2004 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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