Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 04-07-2007, 09:42 AM   #1
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Rep: Reputation: 30
Source Files


I am learning python and wanted to view the source files of a few programs to learn how they were getting the job done. I am on PCLOS 07 (Mandriva Base) and thought the files would be in the usr/src or usr/share directories however I cannot locate them.

Am I missing something ? Where Should I be looking.

Old 04-07-2007, 03:08 PM   #2
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Um, if it's python programs whose source you want to see, they'd be in /usr/bin or wherever - or probably /usr/lib for most of the python distribution, itself. If you want to see C (or other source code for binaries), you'd download the source tarball from upstream or use the 'source rpm's of your distro, I believe. Use the package management tools to find where the latter end up. But /usr/src hardly ever holds anything but the kernel source on most Linux distros and sometimes not even that. /usr/share would be for machine-independent data files and documentation, for the most part.
Old 04-07-2007, 07:05 PM   #3
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
Thanks yes starting with Python first, C or C++ will be second. All the tutorials just say "Look at the Source" but with no explanation how.

In the /usr/lib I see a lot of files of the "", in /usr/bin I have found most of it, thanks for the tip. Also have found that KDE apps source has a good online browsing facility and also this site called Cross Referencing linux


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
gnu make recompiles the source files fully even though the files are not modified yasothamani Linux - Software 4 02-07-2007 06:36 AM
Including header files and source files for classes Feenix Programming 8 09-28-2005 10:53 AM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 01:13 PM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 06:12 PM
How to use .spm files (Source Package Files) concoran Linux - General 1 06-10-2001 02:09 PM > Forums > Linux Forums > Linux - Distributions > Mandriva

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

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