Thread (9 messages) 9 messages, 6 authors, 2012-06-21

download the source code of some commands

From: Greg Freemyer <hidden>
Date: 2012-06-21 14:42:12

On Thu, Jun 21, 2012 at 8:48 AM, ?? [off-list ref] wrote:
? Hi all:
? ? ?? I want to see some source code of some commands,for
example,halt,reboot,uptime,and so on.

but i don't kown where to download??? can you give me some advice?

Thanks in advance!
You need to figure out how your distro of choice lets you query the
filelist for packages.

I use openSUSE primarily and it has the Yast tool that lets you do
that in the software management section.

uptime => coreutils
reboot => aaa_base
halt => aaa_base

Once you know the package your distro uses you can download the
corresponding source package for it.

You will have better luck learning the process you need to know by
asking on a distro specific mailing list.

Greg
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help