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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-10-2006, 09:57 AM
|
#1
|
Member
Registered: Aug 2005
Location: Midwestern USA
Distribution: Slackware 10.2
Posts: 54
Rep:
|
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
|
|
|
04-10-2006, 10:49 AM
|
#2
|
Member
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155
Rep:
|
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.
|
|
|
04-10-2006, 10:53 AM
|
#3
|
Senior Member
Registered: Oct 2003
Posts: 3,007
|
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.
|
|
|
04-11-2006, 08:44 AM
|
#4
|
Member
Registered: Aug 2005
Location: Midwestern USA
Distribution: Slackware 10.2
Posts: 54
Original Poster
Rep:
|
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).
|
|
|
04-11-2006, 11:56 AM
|
#5
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
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.
|
|
|
04-12-2006, 01:16 PM
|
#6
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 04:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|