Kernel upgrade question

I am currently running the 2.4.18 kernel, and I was thinking of upgrading.  I have a couple questions:

First, is it easy (or advisable) to upgrade from the 2.4 tree to the 2.6 kernel?

Second, I remember reading that I should keep the original kernel headers that glibc was compiled against on my system.  If this is the case, would I still put the updated kernel in /usr/src/linux ?

Thanks for the help.
LVL 5
lwinkenbAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jlevieCommented:
Have you considered upgrading the OS to one that includes a 2.6 kernel? There's more than just the kernel that's involved in going from 2.4 to 2.6 and an upgraded OS is a lesser risk situation.
0
wesly_chenCommented:
> First, is it easy (or advisable) to upgrade from the 2.4 tree to the 2.6 kernel?
Not easy. Don't recommend.
Glibc for kernel 2.4 may not work for kernel 2.6. Upgrade glibc will break a lot of application dependencies.

IMHO, you could install kernel 2.6 on other machines for porting if you have in-house softwares developed
originally on kernel 2.4.

If not, then simply fresh OS installation will be better.

Wesly

0
lwinkenbAuthor Commented:
Thanks for the info, sounds like I'll just upgrade to 2.4.28.  Now is it ok for me to delete what is currently in /usr/src/linux and place the new kernel source there, or should I put it somewhere else?
0
wesly_chenCommented:
> is it ok for me to delete what is currently in /usr/src/linux and place the new kernel source there
It's ok to delete the kernel source.
For the same 2.4 kernel, you can do "another installation" instead of "upgrade".
In other words,
mv /usr/src/linux /usr/src/linux-2.4.18
and put your source to
/usr/src/linux-2.4.28
then make a symbolic link
ln -s /usr/src/linux-2.4.28 /usr/src/linux

Wesly
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.