Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 03-29-2005, 04:04 PM   #1
LQ Newbie
Registered: Apr 2004
Distribution: Ubuntu hoary
Posts: 19

Rep: Reputation: 0
linux kernel source location

OK, I'm a noob and I feel like I am missing something very obvious, but anyway....

I am playing with SLES 8 at work and I'm trying to install our Cisco VPN client. Going through install it states that I must have the kernel headers for the version of the kernel I am running (which is 2.4.21-273-default). It lists some normal default locations for this in various distros, all in /usr/src, and prompts to type in the "directory containing linux kernel source code.". But I can't find anything about the kernel anywhere in /usr. The only thing in /usr/src is packages directory. I saw somewhere from googling that someone YASTed kernel-headers for their kernel, but I don't have anything like that in my YAST.

Where else can I look or what else should I do? Will I need to recompile the kernel or something? Any help or pointers to resources are appreciated.
Old 03-29-2005, 04:13 PM   #2
Senior Member
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
it's /usr/src/linux , if it's not there than it's not installed

use yast and search for 'kernel'

Last edited by rshaw; 03-29-2005 at 04:16 PM.
Old 03-30-2005, 09:19 AM   #3
LQ Newbie
Registered: Apr 2004
Distribution: Ubuntu hoary
Posts: 19

Original Poster
Rep: Reputation: 0
ok, well definitely not there.

I had already done a yast search but didn't see anything that had header in it. I do see a kernel source, but it is not for the kernel that is installed.

From YAST:
k_deflt -- Avail: 2.4.19-120 -- Installed: 2.4.21-273
kernel-source -- Avail 2.4.19-SuSE-82

So, should I install the .19 kernel and its source? Or is this going backwards? Will that give me the headers I need?
Old 03-30-2005, 09:30 AM   #4
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297

Rep: Reputation: 30
I expect if you install that kernel-source package, it will be updated to the same version as your kernel when you next run yast-online-update (YOU). The kernel has likely already been updated with patches.

PS. The kernel source package contains the headers
Old 03-30-2005, 09:31 AM   #5
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
You have two options:

1. install the (old) kernel-source package and run online update afterwards

2. download the 'new' kernel-source package form the SUSE mirror ('update' directory) and install this one.

You need to have matching versions! The commands 'uname -r' and 'rpm -q kernel-source' must give you identical versions.

EDIT: too late, slow typing
Old 03-30-2005, 12:33 PM   #6
LQ Newbie
Registered: Apr 2004
Distribution: Ubuntu hoary
Posts: 19

Original Poster
Rep: Reputation: 0
Woot! Thanks to all. I installed the old source (I had it on the disc) and then did a YOU and it brought it all up to date for me.

I think I am beginning to understand the whole yast/you thing now.

Much appreciated.


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
Kernel Source Location alltime Linux - General 2 10-18-2005 12:21 AM
location of mandrake 9.0 linux kernel source files Mariory Mandriva 3 12-20-2004 08:01 PM
Location of kernel source Echo Kilo Linux - General 2 12-19-2004 06:15 PM
Fedore Kernel Source location?? PeRKoniX Linux - Newbie 6 11-02-2004 09:00 AM
location of kernel source joe_sixpack Linux - General 2 02-19-2004 03:45 AM > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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