[gentoo-user] Where is the souce code of software?

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

Re: [gentoo-user] Where is the souce code of software?

2011-11-10 Thread Davide Carnovale
hi,
i guess you're looking for ls /usr/portage/distfiles/

D

2011/11/10 Lavender lavender_mat...@163.com

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





Re: [gentoo-user] Where is the souce code of software?

2011-11-10 Thread Michael Schreckenbauer
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




Re:Re: [gentoo-user] Where is the souce code of software?

2011-11-10 Thread Lavender
At 2011-11-10 21:06:21,Michael Schreckenbauer grim...@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.

Re: [gentoo-user] Where is the souce code of software?

2011-11-10 Thread wolf python london
On 10 November 2011 21:06, Michael Schreckenbauer grim...@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 !




Re:Re: [gentoo-user] Where is the souce code of software?

2011-11-10 Thread Lavender

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 !