LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-20-2004, 11:08 PM   #1
Echo Kilo
Member
 
Registered: Jul 2004
Distribution: Ubuntu - Debian Based
Posts: 242

Rep: Reputation: 30
Mandrake 10 Source Code - Where is it?


Is the source code installed by default on Mandrake 10?

If so, where is it?

If not, how would I get it on there?

If I recompile it, will it nullify all the changes I've done up to this point?

Last edited by Echo Kilo; 12-20-2004 at 11:24 PM.
 
Old 12-21-2004, 01:37 AM   #2
Echo Kilo
Member
 
Registered: Jul 2004
Distribution: Ubuntu - Debian Based
Posts: 242

Original Poster
Rep: Reputation: 30
Does anyone know where the source code is?

On madrake 10?

Or if it is installed by default?
 
Old 12-21-2004, 02:52 AM   #3
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
In recent versions of Mandrakelinux, the source code is not included in the three installation CD images. It is however available on the Mandrakelinux mirrors.

To locate a Mandrakelinux mirror near you, go to the Mandrakelinux WEB site, click the [Download] link at the top of the page, click the [Download] link at the top of the next page, click the Mandrakelinux 10.1/i586 link (second link under Want to download Mandrakelinux?. Scroll down to the part of the mirror list for your Nation, and select a mirror near you.

Navigate up one level in the mirror's directory tree from ~/Mandrakelinux/official/10.1/i586 to ~/Mandrakelinux/official/10.1/ then navigate to ~/Mandrakelinux/official/10.1/SRPMS.

There will be three subdirectories under the SRPMS directory, main, contrib, and jpackage, which contain the source RPM files for Mandrakelinux 10.1 (Official)

HTH,
 
Old 12-21-2004, 04:04 AM   #4
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
Quote:
Is the source code installed by default on Mandrake 10?
No.

Quote:
If not, how would I get it on there?
I responded to another thread with information on getting the Mandrakelinux source code here

Quote:
If I recompile it, will it nullify all the changes I've done up to this point?
Not likely, but why would you recompile all the Mandrakelinux source code? The source code is made available to you so you can customize any specific package(s) to meet your individual needs, or to fix a bug you have found. Unless you have very special requirements, the results may not be worth the effort.

If you want a system built from source, you may wish to try Gentoo Linux. But be prepared for a multiple day build session from initial base system install to finished full blown Linux OS. I am a Mandrakelinux user myself, but if I felt the need to compile a Linux OS from source, I would use Gentoo because it is designed for that purpose.

Mandralelinux is designed to be installed from binary RPM packages, so you may run into any number of issues just trying to get the order of compilation correct. Compiling from source on a binary-centric distribution is the best way I know to become fully conversant with all the difficulties software dependencies can present.

Mandrakelinux provides urpmi to handle dependencies for binary RPM packages, but I do not know if it will do this for source packages. You may well be on your own there.
 
Old 12-21-2004, 05:01 AM   #5
dred
Member
 
Registered: Jun 2004
Posts: 38

Rep: Reputation: 15
Talking

hi ernie

i want to upgrade my 9.2 kernel 2.4.22-10 to the latest 2.4.28 , i didn't find it in RPm package for mandrake 9.2 (the only update for 9.2 is 2.4.22.37), this mean i should patch the kernel , can u tell me from which patch i should start ? & is there any software requirement (dependencies specifically with 2.4.28)
thanks
 
Old 12-21-2004, 06:05 AM   #6
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
a slightly easier method than downloading .src rpm's.......

go to Easy URPMI or, if that's unavailable, here's an Alternate Site. as was mentioned, you need to set up a "main" source to get the kernel source. also, it's a good idea to set up plf, contrib, & jpackage sources. stay away from "cooker" stuff, because that's testing/beta apps & tends to be very unstable. follow the instructions on either site to add sources.

after your sources are set up, to get the kernel-source, do the following......

first, determine what kernel you are currently running if you don't know that already. you'll need a source that matches your kernel. to find out your current kernel version, in a terminal as root do......

Code:
uname -a
note the kernel version. to get the source, you can either.....

use Mandrake Control Center->software management->install & type kernel in the search box. select the kernel-source that matches your kernel, install it, reboot.

or.........

in terminal as root, type........

Code:
urpmi kernel-source
if more than one kernel-source exists, it will let you select from a list. again, choose the source that matches your kernel. if it finds only one source, it will auto install it. again, reboot.

otis
 
Old 12-22-2004, 11:56 AM   #7
Echo Kilo
Member
 
Registered: Jul 2004
Distribution: Ubuntu - Debian Based
Posts: 242

Original Poster
Rep: Reputation: 30
Well, I've done some of this with programs:

./configure
make
make install

I'm trying to install a vpn software (poptop) and find that certain components are necessary that say the have to be installed from source. I guess I'm a little confused.
 
Old 12-22-2004, 11:58 AM   #8
Echo Kilo
Member
 
Registered: Jul 2004
Distribution: Ubuntu - Debian Based
Posts: 242

Original Poster
Rep: Reputation: 30
What is the reboot for? If I download the source and reboot, does that just allow me to look at it or is that recompiling it?
 
Old 12-22-2004, 12:00 PM   #9
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
I have merged these 2 identical threads into 1. Only open a second thread for a seperate problem, please.
 
  


Reply



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
How to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 12:48 PM
where is source code? heraklez Mandriva 5 07-31-2005 05:47 PM
Source code hey_joe Linux - Newbie 1 03-14-2004 01:06 PM
Source Code help palbox2003 Linux - Newbie 1 02-23-2004 04:10 AM
Source Code dvong3 Linux - Newbie 3 07-13-2003 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration