LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   How to install kernal source for Mandrake 10? (https://www.linuxquestions.org/questions/mandriva-30/how-to-install-kernal-source-for-mandrake-10-a-213465/)

i_like_deer 08-04-2004 04:21 PM

How to install kernal source for Mandrake 10?
 
:newbie: QUESTION

how do i install the kernal source code? i couldn't figure how to find it. i'm running mandrake 10. Could someone help?

thanks.

win32sux 08-04-2004 04:57 PM

urpmi kernel-source-2.4.25

urpmi kernel-source-2.6.3

(i think)


here's the rpms:

ftp://ftp.isu.edu.tw/pub/Linux/Mandr...-2mdk.i586.rpm

ftp://ftp.isu.edu.tw/pub/Linux/Mandr...-7mdk.i586.rpm


vectordrake 08-05-2004 09:41 AM

They're on the cds too.

i_like_deer 08-05-2004 10:39 AM

thanks win32sux--i'll try that.


Quote:

Originally posted by vectordrake
They're on the cds too.
i think that's right but i couldn't figure out how to get them off....

vectordrake 08-05-2004 12:40 PM

fire up rpmdrake (or mcc) and put in the search box "kernel" and you can browse for it. Or, simply "urpmi kernel-source" should fetch the sources relavent to your current kernel.

i_like_deer 08-05-2004 01:47 PM

thanks!!

cyborg_jt 08-05-2004 05:26 PM

you could also do this command
urpmq kernel

this searchs for packages named kernel..... etc

then urpmi theoneyouwant

and its sweet

i_like_deer 08-06-2004 12:54 PM

it didn't work :(

i did urpmi kernel and it listed some stuff and said 'one of these is needed. pick one' and i picked one & it said 'everything already installed'

so then i did urpmi kernel-source and it said 'no package named kernel-source'
so i tried urpmi kernel-source-2.6.3 & got 'no package named kernel-source-2.6.3'
i also tried it with kernel-source-2.4.25, same thing.

i also tried doing ls -alc in /usr/src to see if it was already there & it's not...

i have no idea what to do. please help.

cyborg_jt 08-07-2004 12:09 AM

did you try urpmq kernel

jschiwal 08-07-2004 12:17 AM

If you can download or locate the rpms for the particular kernel, you can use the urpmi command, and use autocompletion to give the full file name. If the package you are trying to install isn't in the hdlist or synthesis.hdlist, then you need to include the full file name of the package you are trying to install. CDing to the place you downloaded the file and using auto-completion is the easiest way.

i_like_deer 08-08-2004 12:10 PM

i tried urpmq kernel and it gave me all the stuff i already installed--none of it called kernel source. i also tried urpmq source and it just gave me sourceview stuff.

these packages that i'm installing are coming from the installation cd's so i hope that that would mean i don't have to download anything, right? maybe it did everything for me & i don't realize it. but if that were true, then why can't i find my 'path to linux'?

vectordrake 08-08-2004 01:26 PM

Its on disk 3. If you don't seem to have it in your urpmi list, your sources aren't configured properly. You should rebuild them (or if you have a fast connection, get one set up from ftp sites with easyurpmi <----google it).

If you want them, mount your disk 3 and "rpm -i" it.


All times are GMT -5. The time now is 02:55 PM.