[HOME] [戻る]

玄箱インストールmemo(coreutils)

目次

coreutils-5.2.1

90種類のUNIXの基本コマンドです。

ソースファイルのダウンロード

ソースファイルの展開

$ tar zxf coreutils-5.2.1.tar.gz
$ cd coreutils-5.2.1

configure

$ date
Mon Jan 31 20:37:02 JST 2005

$ ./configure --prefix=/usr
...
...
$ date
Mon Jan 31 20:46:26 JST 2005

make

$ date
Mon Jan 31 20:49:31 JST 2005

$ make && make check && date
Mon Jan 31 21:05:21 JST 2005

install

$ su
# make install

インストールされたコマンドの確認

cd /usr/bin
ls -lt

-rwxr-xr-x    1 root     root       172103 Jan 31 21:08 df
-rwxr-xr-x    1 root     root         1675 Jan 31 21:08 groups
-r-sr-xr-x    1 root     root        91616 Jan 31 21:08 su
-rwxr-xr-x    1 root     root        81575 Jan 31 21:08 chroot
-rwxr-xr-x    1 root     root        79759 Jan 31 21:08 hostid
-rwxr-xr-x    1 root     root        92498 Jan 31 21:08 nice
-rwxr-xr-x    1 root     root       111926 Jan 31 21:08 pinky
-rwxr-xr-x    1 root     root       130336 Jan 31 21:08 stty
-rwxr-xr-x    1 root     root        94368 Jan 31 21:08 uname
-rwxr-xr-x    1 root     root       105438 Jan 31 21:08 uptime
-rwxr-xr-x    1 root     root        90936 Jan 31 21:08 users
-rwxr-xr-x    1 root     root       114420 Jan 31 21:08 who
-rwxr-xr-x    1 root     root        81213 Jan 31 21:08 yes
-rwxr-xr-x    1 root     root       118542 Jan 31 21:08 printf
-rwxr-xr-x    1 root     root        81247 Jan 31 21:08 pwd
-rwxr-xr-x    1 root     root        99048 Jan 31 21:08 seq
-rwxr-xr-x    1 root     root        95770 Jan 31 21:08 sleep
-rwxr-xr-x    1 root     root        85734 Jan 31 21:08 tee
-rwxr-xr-x    1 root     root        92198 Jan 31 21:08 test
-rwxr-xr-x    1 root     root        77384 Jan 31 21:08 true
-rwxr-xr-x    1 root     root        79259 Jan 31 21:08 tty
-rwxr-xr-x    1 root     root        81305 Jan 31 21:08 whoami
-rwxr-xr-x    1 root     root       121189 Jan 31 21:08 factor
-rwxr-xr-x    1 root     root        77385 Jan 31 21:08 false
-rwxr-xr-x    1 root     root        81866 Jan 31 21:08 hostname
-rwxr-xr-x    1 root     root        89080 Jan 31 21:08 id
-rwxr-xr-x    1 root     root       100797 Jan 31 21:08 kill
-rwxr-xr-x    1 root     root        80979 Jan 31 21:08 logname
-rwxr-xr-x    1 root     root        85242 Jan 31 21:08 pathchk
-rwxr-xr-x    1 root     root        81616 Jan 31 21:08 printenv
-rwxr-xr-x    1 root     root        81989 Jan 31 21:08 basename
-rwxr-xr-x    1 root     root       180231 Jan 31 21:08 date
-rwxr-xr-x    1 root     root        83173 Jan 31 21:08 dirname
-rwxr-xr-x    1 root     root        82797 Jan 31 21:08 echo
-rwxr-xr-x    1 root     root        80629 Jan 31 21:08 env
-rwxr-xr-x    1 root     root       122231 Jan 31 21:08 expr
-rwxr-xr-x    1 root     root        88732 Jan 31 21:08 unexpand
-rwxr-xr-x    1 root     root       114342 Jan 31 21:08 uniq
-rwxr-xr-x    1 root     root       117818 Jan 31 21:08 wc
-rwxr-xr-x    1 root     root       109878 Jan 31 21:08 tac
-rwxr-xr-x    1 root     root       179654 Jan 31 21:08 tail
-rwxr-xr-x    1 root     root       123061 Jan 31 21:08 tr
-rwxr-xr-x    1 root     root       103274 Jan 31 21:08 tsort
-rwxr-xr-x    1 root     root        89024 Jan 31 21:08 paste
-rwxr-xr-x    1 root     root       142768 Jan 31 21:08 pr
-rwxr-xr-x    1 root     root       127122 Jan 31 21:08 ptx
-rwxr-xr-x    1 root     root       120487 Jan 31 21:08 sha1sum
-rwxr-xr-x    1 root     root       211352 Jan 31 21:08 sort
-rwxr-xr-x    1 root     root       133214 Jan 31 21:08 split
-rwxr-xr-x    1 root     root       138020 Jan 31 21:08 sum
-rwxr-xr-x    1 root     root        90205 Jan 31 21:08 expand
-rwxr-xr-x    1 root     root       104681 Jan 31 21:08 fmt
-rwxr-xr-x    1 root     root        92462 Jan 31 21:08 fold
-rwxr-xr-x    1 root     root       142676 Jan 31 21:08 head
-rwxr-xr-x    1 root     root       142764 Jan 31 21:08 join
-rwxr-xr-x    1 root     root       120465 Jan 31 21:08 md5sum
-rwxr-xr-x    1 root     root       104453 Jan 31 21:08 nl
-rwxr-xr-x    1 root     root       151972 Jan 31 21:08 od
-rwxr-xr-x    1 root     root        92926 Jan 31 21:08 cat
-rwxr-xr-x    1 root     root       108258 Jan 31 21:08 cksum
-rwxr-xr-x    1 root     root        91954 Jan 31 21:08 comm
-rwxr-xr-x    1 root     root       158976 Jan 31 21:08 csplit
-rwxr-xr-x    1 root     root       117880 Jan 31 21:08 cut
-rwxr-xr-x    1 root     root       141463 Jan 31 21:08 stat
-rwxr-xr-x    1 root     root        79632 Jan 31 21:08 sync
-rwxr-xr-x    1 root     root       127597 Jan 31 21:08 touch
-rwxr-xr-x    1 root     root        82048 Jan 31 21:08 unlink
-rwxr-xr-x    1 root     root        83991 Jan 31 21:08 rmdir
-rwxr-xr-x    1 root     root       175192 Jan 31 21:08 shred
-rwxr-xr-x    1 root     root        93716 Jan 31 21:08 mkfifo
-rwxr-xr-x    1 root     root       122120 Jan 31 21:08 mknod
-rwxr-xr-x    1 root     root       233729 Jan 31 21:08 mv
-rwxr-xr-x    1 root     root        94692 Jan 31 21:08 nohup
-rwxr-xr-x    1 root     root        82124 Jan 31 21:08 readlink
-rwxr-xr-x    1 root     root       141137 Jan 31 21:08 rm
-rwxr-xr-x    1 root     root       295192 Jan 31 21:08 dir
-rwxr-xr-x    1 root     root       204229 Jan 31 21:08 du
-rwxr-xr-x    1 root     root       232737 Jan 31 21:08 install
-rwxr-xr-x    1 root     root        81962 Jan 31 21:08 link
-rwxr-xr-x    1 root     root       129762 Jan 31 21:08 ln
-rwxr-xr-x    1 root     root       295191 Jan 31 21:08 ls
-rwxr-xr-x    1 root     root       108010 Jan 31 21:08 mkdir
-rwxr-xr-x    1 root     root       295193 Jan 31 21:08 vdir
-rwxr-xr-x    1 root     root       108241 Jan 31 21:08 [
-rwxr-xr-x    1 root     root       171740 Jan 31 21:08 chgrp
-rwxr-xr-x    1 root     root       167443 Jan 31 21:08 chmod
-rwxr-xr-x    1 root     root       179527 Jan 31 21:08 chown
-rwxr-xr-x    1 root     root       211935 Jan 31 21:08 cp
-rwxr-xr-x    1 root     root       156473 Jan 31 21:08 dd
-rwxr-xr-x    1 root     root        99440 Jan 31 21:08 dircolors

strip してサイズを確認

su
strip -p df groups su chroot hostid nice pinky stty uname uptime
strip -p users who yes printf pwd seq sleep tee test true tty
strip -p whoami factor false hostname id kill logname pathchk
strip -p printenv basename date dirname echo env expr unexpand
strip -p uniq wc tac tail tr tsort paste pr ptx sha1sum sort split
strip -p sum expand fmt fold head join md5sum nl od cat cksum comm
strip -p csplit cut stat sync touch unlink rmdir shred mkfifo
strip -p mknod mv nohup readlink rm dir du install link ln ls
strip -p mkdir vdir [ chgrp chmod chown cp dd dircolors

ls -lt

-rwxr-xr-x    1 root     root        36828 Jan 31 21:08 df
-rwxr-xr-x    1 root     root         1675 Jan 31 21:08 groups
-r-sr-xr-x    1 root     root        17856 Jan 31 21:08 su
-rwxr-xr-x    1 root     root        14088 Jan 31 21:08 chroot
-rwxr-xr-x    1 root     root        13320 Jan 31 21:08 hostid
-rwxr-xr-x    1 root     root        16640 Jan 31 21:08 nice
-rwxr-xr-x    1 root     root        19804 Jan 31 21:08 pinky
-rwxr-xr-x    1 root     root        37108 Jan 31 21:08 stty
-rwxr-xr-x    1 root     root        14512 Jan 31 21:08 uname
-rwxr-xr-x    1 root     root        15992 Jan 31 21:08 uptime
-rwxr-xr-x    1 root     root        14728 Jan 31 21:08 users
-rwxr-xr-x    1 root     root        22304 Jan 31 21:08 who
-rwxr-xr-x    1 root     root        13528 Jan 31 21:08 yes
-rwxr-xr-x    1 root     root        23064 Jan 31 21:08 printf
-rwxr-xr-x    1 root     root        13544 Jan 31 21:08 pwd
-rwxr-xr-x    1 root     root        17328 Jan 31 21:08 seq
-rwxr-xr-x    1 root     root        16156 Jan 31 21:08 sleep
-rwxr-xr-x    1 root     root        14408 Jan 31 21:08 tee
-rwxr-xr-x    1 root     root        24624 Jan 31 21:08 test
-rwxr-xr-x    1 root     root        12712 Jan 31 21:08 true
-rwxr-xr-x    1 root     root        13288 Jan 31 21:08 tty
-rwxr-xr-x    1 root     root        13544 Jan 31 21:08 whoami
-rwxr-xr-x    1 root     root        22528 Jan 31 21:08 factor
-rwxr-xr-x    1 root     root        12712 Jan 31 21:08 false
-rwxr-xr-x    1 root     root        13848 Jan 31 21:08 hostname
-rwxr-xr-x    1 root     root        17152 Jan 31 21:08 id
-rwxr-xr-x    1 root     root        18244 Jan 31 21:08 kill
-rwxr-xr-x    1 root     root        13480 Jan 31 21:08 logname
-rwxr-xr-x    1 root     root        15320 Jan 31 21:08 pathchk
-rwxr-xr-x    1 root     root        13672 Jan 31 21:08 printenv
-rwxr-xr-x    1 root     root        13928 Jan 31 21:08 basename
-rwxr-xr-x    1 root     root        42340 Jan 31 21:08 date
-rwxr-xr-x    1 root     root        14188 Jan 31 21:08 dirname
-rwxr-xr-x    1 root     root        14984 Jan 31 21:08 echo
-rwxr-xr-x    1 root     root        14028 Jan 31 21:08 env
-rwxr-xr-x    1 root     root        24172 Jan 31 21:08 expr
-rwxr-xr-x    1 root     root        16912 Jan 31 21:08 unexpand
-rwxr-xr-x    1 root     root        23484 Jan 31 21:08 uniq
-rwxr-xr-x    1 root     root        21508 Jan 31 21:08 wc
-rwxr-xr-x    1 root     root        19120 Jan 31 21:08 tac
-rwxr-xr-x    1 root     root        41268 Jan 31 21:08 tail
-rwxr-xr-x    1 root     root        30984 Jan 31 21:08 tr
-rwxr-xr-x    1 root     root        25148 Jan 31 21:08 tsort
-rwxr-xr-x    1 root     root        16908 Jan 31 21:08 paste
-rwxr-xr-x    1 root     root        38280 Jan 31 21:08 pr
-rwxr-xr-x    1 root     root        33612 Jan 31 21:08 ptx
-rwxr-xr-x    1 root     root        30212 Jan 31 21:08 sha1sum
-rwxr-xr-x    1 root     root        44000 Jan 31 21:08 sort
-rwxr-xr-x    1 root     root        25536 Jan 31 21:08 split
-rwxr-xr-x    1 root     root        26284 Jan 31 21:08 sum
-rwxr-xr-x    1 root     root        16832 Jan 31 21:08 expand
-rwxr-xr-x    1 root     root        21904 Jan 31 21:08 fmt
-rwxr-xr-x    1 root     root        17064 Jan 31 21:08 fold
-rwxr-xr-x    1 root     root        30844 Jan 31 21:08 head
-rwxr-xr-x    1 root     root        28108 Jan 31 21:08 join
-rwxr-xr-x    1 root     root        30212 Jan 31 21:08 md5sum
-rwxr-xr-x    1 root     root        21556 Jan 31 21:08 nl
-rwxr-xr-x    1 root     root        36292 Jan 31 21:08 od
-rwxr-xr-x    1 root     root        18004 Jan 31 21:08 cat
-rwxr-xr-x    1 root     root        18204 Jan 31 21:08 cksum
-rwxr-xr-x    1 root     root        16620 Jan 31 21:08 comm
-rwxr-xr-x    1 root     root        34608 Jan 31 21:08 csplit
-rwxr-xr-x    1 root     root        25788 Jan 31 21:08 cut
-rwxr-xr-x    1 root     root        31808 Jan 31 21:08 stat
-rwxr-xr-x    1 root     root        13272 Jan 31 21:08 sync
-rwxr-xr-x    1 root     root        29696 Jan 31 21:08 touch
-rwxr-xr-x    1 root     root        13768 Jan 31 21:08 unlink
-rwxr-xr-x    1 root     root        14776 Jan 31 21:08 rmdir
-rwxr-xr-x    1 root     root        40116 Jan 31 21:08 shred
-rwxr-xr-x    1 root     root        17392 Jan 31 21:08 mkfifo
-rwxr-xr-x    1 root     root        21684 Jan 31 21:08 mknod
-rwxr-xr-x    1 root     root        56944 Jan 31 21:08 mv
-rwxr-xr-x    1 root     root        15772 Jan 31 21:08 nohup
-rwxr-xr-x    1 root     root        14168 Jan 31 21:08 readlink
-rwxr-xr-x    1 root     root        32932 Jan 31 21:08 rm
-rwxr-xr-x    1 root     root        82200 Jan 31 21:08 dir
-rwxr-xr-x    1 root     root        47548 Jan 31 21:08 du
-rwxr-xr-x    1 root     root        54196 Jan 31 21:08 install
-rwxr-xr-x    1 root     root        13736 Jan 31 21:08 link
-rwxr-xr-x    1 root     root        25912 Jan 31 21:08 ln
-rwxr-xr-x    1 root     root        82200 Jan 31 21:08 ls
-rwxr-xr-x    1 root     root        21548 Jan 31 21:08 mkdir
-rwxr-xr-x    1 root     root        82200 Jan 31 21:08 vdir
-rwxr-xr-x    1 root     root        26872 Jan 31 21:08 [
-rwxr-xr-x    1 root     root        35692 Jan 31 21:08 chgrp
-rwxr-xr-x    1 root     root        35476 Jan 31 21:08 chmod
-rwxr-xr-x    1 root     root        37964 Jan 31 21:08 chown
-rwxr-xr-x    1 root     root        52220 Jan 31 21:08 cp
-rwxr-xr-x    1 root     root        34504 Jan 31 21:08 dd
-rwxr-xr-x    1 root     root        21976 Jan 31 21:08 dircolors

2005/01/31