LinuxQuestions.org
Help answer threads with 0 replies.
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 05-03-2007, 04:10 PM   #1
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Can I remove old kernel sources after kernel upgrade(to 2.6.17.13) on Slackware 11?


Hello.
I have following qustion(s):
About a month or two ago I've manually upgraded kernel from version 2.4.33.3 to 2.6.17.13. The new kernel was built from sources. Recently I've found that sources for old kernel are still here (in /usr/src/linux-2.4.33.3), and /usr/src/linux is symlink for /usr/src/linux-2.4.33.3. Since this is an old kernel, can I (safely) remove this directory (this will break /usr/src/linux symlink)? And should I make a /usr/src/linux a symlink to a new kernel sources? Does something rely on this directory (so I must not change it)?

I just need some clarification - since it is an old kernel sources, it should not be very useful (in an ideal case), but I've seen an info(http://linuxmafia.com/faq/Kernel/usr...x-symlink.html) that glibc uses /usr/src/linux, so /usr/src/linux shouldn't be changed....

Last edited by ErV; 05-03-2007 at 04:13 PM.
 
Old 05-03-2007, 04:20 PM   #2
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
i think that is outdated. you can safely remove the old kernel source.
 
Old 05-03-2007, 06:59 PM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,453

Rep: Reputation: Disabled
It would be better if you use "removepkg /var/log/packages/kernel-source-2.4*" rather than just deleting the directory. That way you keep your /var/log/packages up to date.

Brian
 
Old 05-04-2007, 03:31 AM   #4
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Original Poster
Rep: Reputation: 62
Ok, I've removed old kernel sources and nothing bad happened

However, there is another question: It looks like i've managed to install two different versions of kernel headers in /usr/include/linux (in same directory), and I'm not sure which of them was overwritten. Do I need to change them too (o make them match kernel), or I shouldn't touch this directory?
 
Old 05-04-2007, 03:49 AM   #5
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
Quote:
Originally Posted by ErV
Ok, I've removed old kernel sources and nothing bad happened

However, there is another question: It looks like i've managed to install two different versions of kernel headers in /usr/include/linux (in same directory), and I'm not sure which of them was overwritten. Do I need to change them too (o make them match kernel), or I shouldn't touch this directory?
why would anything bad happen?
the kernel boots from the vmlinuz image anyways. you can even delete the current source, but it's not recommended cause next time you'll have to download the whole kernel .bz2 instead of only the patch.
 
Old 05-04-2007, 04:13 AM   #6
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Original Poster
Rep: Reputation: 62
Quote:
Originally Posted by itz2000
why would anything bad happen?
I just wasn't sure if this directory was used by something (gcc, for example) or not. I've posted a link to an article that caused doubts before...
 
Old 05-04-2007, 10:21 AM   #7
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
Quote:
Originally Posted by ErV
Ok, I've removed old kernel sources and nothing bad happened

However, there is another question: It looks like i've managed to install two different versions of kernel headers in /usr/include/linux (in same directory), and I'm not sure which of them was overwritten. Do I need to change them too (o make them match kernel), or I shouldn't touch this directory?
remove them both, and reinstall the one that fits your glibc ( for 11.0 that'd be kernel-headers-2.4.33 )
 
Old 05-04-2007, 12:06 PM   #8
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Original Poster
Rep: Reputation: 62
Quote:
Originally Posted by erklaerbaer
remove them both, and reinstall the one that fits your glibc ( for 11.0 that'd be kernel-headers-2.4.33 )
Ok, will do that.

I guess that it's all - problem solved, question answered.

Thanks for everyone who posted a reply.
 
  


Reply


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
Slackware 11 kernel upgrade help misterjingo Slackware 8 02-09-2007 11:33 AM
Ndiswrapper - Cant find kernel sources while installing (Kernel 2.6.11) krayhze Linux - Wireless Networking 6 05-23-2006 06:30 AM
Slackware Kernel upgrade carlosinfl Slackware 8 06-18-2005 12:33 AM
Slackware 10- Please confirm my steps used to remove a module from a pre-built kernel jtp51 Slackware 7 11-03-2004 05:02 PM
CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat) JCCyC LinuxQuestions.org Member Success Stories 0 08-07-2003 07:49 AM


All times are GMT -5. The time now is 03:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration