public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Where is the souce code of software?
@ 2011-11-10 12:46 Lavender
  2011-11-10 12:52 ` Davide Carnovale
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lavender @ 2011-11-10 12:46 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 105 bytes --]

Could anyone tell me that where I can find the source
code of software on my system? Such as ls, cd .etc.

[-- Attachment #2: Type: text/html, Size: 291 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Where is the souce code of software?
  2011-11-10 12:46 [gentoo-user] Where is the souce code of software? Lavender
@ 2011-11-10 12:52 ` Davide Carnovale
  2011-11-10 13:06 ` Michael Schreckenbauer
  2011-11-10 13:32 ` Lavender
  2 siblings, 0 replies; 6+ messages in thread
From: Davide Carnovale @ 2011-11-10 12:52 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

hi,
i guess you're looking for "ls /usr/portage/distfiles/"

D

2011/11/10 Lavender <lavender_matrix@163.com>

> Could anyone tell me that where I can find the source
> code of software on my system? Such as ls, cd .etc.
>
>
>

[-- Attachment #2: Type: text/html, Size: 677 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Where is the souce code of software?
  2011-11-10 12:46 [gentoo-user] Where is the souce code of software? Lavender
  2011-11-10 12:52 ` Davide Carnovale
@ 2011-11-10 13:06 ` Michael Schreckenbauer
  2011-11-10 13:37   ` wolf python london
  2011-11-10 13:44   ` Lavender
  2011-11-10 13:32 ` Lavender
  2 siblings, 2 replies; 6+ messages in thread
From: Michael Schreckenbauer @ 2011-11-10 13:06 UTC (permalink / raw
  To: gentoo-user

Hi,

Am Donnerstag, 10. November 2011, 20:46:28 schrieb Lavender:
> Could anyone tell me that where I can find the source
> code of software on my system? Such as ls, cd .etc.

first you have to find out to  which package the binary you are interested in 
belongs to, eg
~ $ equery b /bin/ls
 * Searching for /bin/ls ... 
sys-apps/coreutils-8.14 (/bin/ls)

(If you don't have equery, install gentoolkit)

Use the command
emerge -f =<cat>/<package>-<version>
to download the sources to your distfiles.
(if they are already there, the command above downloads nothing)

Unpack them to somewhere in your $HOME, done.

Best,
Michael




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re:Re: [gentoo-user] Where is the souce code of software?
  2011-11-10 12:46 [gentoo-user] Where is the souce code of software? Lavender
  2011-11-10 12:52 ` Davide Carnovale
  2011-11-10 13:06 ` Michael Schreckenbauer
@ 2011-11-10 13:32 ` Lavender
  2 siblings, 0 replies; 6+ messages in thread
From: Lavender @ 2011-11-10 13:32 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 582 bytes --]

At 2011-11-10 21:06:21,"Michael Schreckenbauer" grimlog@gmx.de> wrote:
>Hi,
>
first you have to find out to  which package the binary you are interested in 
>belongs to, eg
>~ $ equery b /bin/ls
> * Searching for /bin/ls ... 
>sys-apps/coreutils-8.14 (/bin/ls)
>
>(If you don't have equery, install gentoolkit)
>
>Use the command
>emerge -f =<cat>/<package>-<version>
>to download the sources to your distfiles.
>(if they are already there, the command above downloads nothing)
>
>Unpack them to somewhere in your $HOME, done.
>
>Best,
>Michael
>
Thank you ,I think I misunderstood.

[-- Attachment #2: Type: text/html, Size: 1293 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Where is the souce code of software?
  2011-11-10 13:06 ` Michael Schreckenbauer
@ 2011-11-10 13:37   ` wolf python london
  2011-11-10 13:44   ` Lavender
  1 sibling, 0 replies; 6+ messages in thread
From: wolf python london @ 2011-11-10 13:37 UTC (permalink / raw
  To: gentoo-user

On 10 November 2011 21:06, Michael Schreckenbauer <grimlog@gmx.de> wrote:
> Hi,
>
> Am Donnerstag, 10. November 2011, 20:46:28 schrieb Lavender:
>> Could anyone tell me that where I can find the source
>> code of software on my system? Such as ls, cd .etc.
>
> first you have to find out to  which package the binary you are interested in
> belongs to, eg
> ~ $ equery b /bin/ls
>  * Searching for /bin/ls ...
> sys-apps/coreutils-8.14 (/bin/ls)
>

Humm , I guess  he just want to look for the source code of gnu coreutils,

just download the gnu coreutils. http://ftp.cn.debian.org/gnu/coreutils/

uncompress it , then you can find them all .
> (If you don't have equery, install gentoolkit)
>
> Use the command
> emerge -f =<cat>/<package>-<version>
> to download the sources to your distfiles.
> (if they are already there, the command above downloads nothing)
>
> Unpack them to somewhere in your $HOME, done.
>
> Best,
> Michael
>
>
>



-- 
________________________
Yes, I use Debian GNU/L
wolf python london(WPL)
Do as you soul should do !
________________________



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re:Re: [gentoo-user] Where is the souce code of software?
  2011-11-10 13:06 ` Michael Schreckenbauer
  2011-11-10 13:37   ` wolf python london
@ 2011-11-10 13:44   ` Lavender
  1 sibling, 0 replies; 6+ messages in thread
From: Lavender @ 2011-11-10 13:44 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

>
>Humm , I guess  he just want to look for the source code of gnu coreutils,
>
>just download the gnu coreutils. http://ftp.cn.debian.org/gnu/coreutils/
>
>uncompress it , then you can find them all .
 
Ha, you're right.  I don't know how to call them as you call them coreutils.
I just want to study simple codes at beginning. So, thanks a lot !

[-- Attachment #2: Type: text/html, Size: 751 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-11-10 13:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-10 12:46 [gentoo-user] Where is the souce code of software? Lavender
2011-11-10 12:52 ` Davide Carnovale
2011-11-10 13:06 ` Michael Schreckenbauer
2011-11-10 13:37   ` wolf python london
2011-11-10 13:44   ` Lavender
2011-11-10 13:32 ` Lavender

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox