Cari di RHE Linux 
    Red Hat Enterprise Linux Manual
Daftar Isi
(Sebelumnya) 1 : Boot Process, Init, and Sh ...1 : Other Technical Documentat ... (Berikutnya)

Installation Guide

Alternatives to busybox commands

Unlike previous releases of Red Hat Enterprise Linux, Red Hat Enterprise Linux 6 does not include a version of busybox to provide shell commands in the pre-installation and post-installation environments. Table G.1, "Alternatives to busybox commands" contains a list of busybox commands, equivalent ways to implement the same functionality in bash, and the availability of these alternatives in the %pre and %post environments. The table also indicates the exact path to the command, although you do not generally need to specify the path because the PATH environment variable is set in the installation environment.
If a command is only available in %post, the command is running on the target system and its availability therefore depends on whether the package that provides the command is installed. Every command that appears in the "New command or alternative" column of Table G.1, "Alternatives to busybox commands" is available for Red Hat Enterprise Linux 6, although not every command is available on every installed system.
Where a command is listed as unavailable, you might be able to create equivalent functionality with a Python script. The Python language is available to %pre and %post script authors, complete with a set of Python modules ready for use. Therefore, if a particular command is not available to you in the installation environment, we recommend that you use Python as the script language.

Table G.1. Alternatives to busybox commands

Busybox command%pre%postNew command or alternative
addgroupnoyes/usr/sbin/groupadd
addusernoyes/usr/sbin/useradd
adjtimexnononone
arnoyes/usr/bin/ar
arpingyesyes/sbin/arping or /usr/sbin/arping
ashyesyes/bin/bash
awkyesyes/sbin/awk, /sbin/gawk, or /usr/bin/gawk [a]
basenameyesyes/bin/bash [b], /usr/bin/basename
bbconfignononone - this command is a specific to Busybox
bunzip2yesyes/usr/bin/bunzip2, /usr/bin/bzip2 -d
busyboxnononone
bzcatyesyes/usr/bin/bzcat, /usr/bin/bzip2 -dc
calnoyes/usr/bin/cal
catyesyes/usr/bin/cat
catvnonocat -vET or cat -A
chattryesyes/usr/bin/chattr
chgrpyesyes/usr/bin/chgrp
chmodyesyes/usr/bin/chmod
chownyesyes/usr/bin/chown
chrootyesyes/usr/sbin/chroot
chvtyesyes/usr/bin/chvt
cksumnoyes/usr/bin/cksum
clearyesyes/usr/bin/clear
cmpnoyes/usr/bin/cmp
commnoyes/usr/bin/comm
cpyesyes/usr/bin/cp
cpioyesyes/usr/bin/cpio
crondnononone - no daemons available to scriptlets
crontabnoyes/usr/bin/crontab
cutyesyes/usr/bin/cut
dateyesyes/usr/bin/date
dcnoyes/usr/bin/dc
ddyesyes/usr/bin/dd
deallocvtnoyes/usr/bin/deallocvt
delgroupnoyes/usr/sbin/groupdel
delusernoyes/usr/sbin/userdel
devfsdnononone - Red Hat Enterprise Linux does not use devfs
dfyesyes/usr/bin/df
diffnoyes/usr/bin/diff
dirnameyesyes/bin/bash [c], /usr/bin/dirname
dmesgyesyes/usr/bin/dmesg
dnsdnononone - no daemons available to scriptlets
dos2unixnonosed 's/.$//'
dpkgnononone - no support for Debian packages
dpkg-debnononone - no support for Debian packages
duyesyes/usr/bin/du
dumpkmapnononone
dumpleasesnononone
e2fsckyesyes/usr/sbin/e2fsck
e2labelyesyes/usr/sbin/e2label
echoyesyes/usr/bin/echo
ednono/sbin/sed, /usr/bin/sed
egrepyesyes/sbin/egrep, /usr/bin/egrep
ejectyesyes/usr/bin/eject
envyesyes/usr/bin/env
ether-wakenononone
expryesyes/usr/bin/expr
fakeidentdnononone - no daemons available to scriptlets
falseyesyes/usr/bin/false
fbsetnoyes/usr/sbin/fbset
fdflushnononone
fdformatnoyes/usr/bin/fdformat
fdiskyesyes/usr/sbin/fdisk
fgrepyesyes/sbin/fgrep, /usr/bin/fgrep
findyesyes/usr/bin/find
findfsnononone
foldnoyes/usr/bin/fold
freenoyes/usr/bin/free
freeramdisknononone
fsckyesyes/usr/sbin/fsck
fsck.ext2yesyes/usr/sbin/fsck.ext2, /usr/sbin/e2fsck
fsck.ext3yesyes/usr/sbin/fsck.ext3, /usr/sbin/e2fsck
fsck.minixnononone - no support for the Minix file system
ftpgetyesyes/usr/bin/ftp or Python ftplib module
ftpputyesyes/usr/bin/ftp or Python ftplib module
fusernoyes/sbin/fuser
getoptnoyes/usr/bin/getopt
gettynononone
grepyesyes/sbin/grep, /usr/bin/grep
gunzipyesyes/usr/bin/gunzip, /usr/bin/gzip -d
gzipyesyes/usr/bin/gzip
hdparmyesyes/usr/sbin/hdparm
headyesyes/usr/bin/head
hexdumpnoyes/usr/bin/hexdump
hostidnoyes/usr/bin/hostid or Python
hostnameyesyes/sbin/hostname, /usr/bin/hostname
httpdnononone - no daemons available to scriptlets
hushnononone
hwclockyesyes/usr/sbin/hwclock
idnoyes/usr/bin/id or Python
ifconfigyesyes/sbin/ifconfig, /usr/sbin/ifconfig
ifdownnonoifconfig device down
ifupnonoifconfig device up
inetdnononone - no daemons available to scriptlets
insmodyesyes/sbin/insmod, /usr/sbin/insmod
installnoyes/usr/bin/install or mkdir/cp/chmod/chown/chgrp
ipyesyes/sbin/ip, /usr/sbin/ip
ipaddrnonoifconfig or ip
ipcalcyesyes/sbin/ipcalc, /usr/bin/ipcalc
ipcrmnoyes/usr/bin/ipcrm
ipcsnoyes/usr/bin/ipcs
iplinknonoip
iproutenonoip
iptunnelnoyes/sbin/iptunnel
killyesyes/sbin/kill, /usr/bin/kill
killallyesyes/usr/bin/killall
lashnononone
lastnoyes/usr/bin/last
lengthnonoPython or bash
lessyesyes/usr/bin/less
linux32nononone
linux64nononone
lnyesyes/sbin/ln, /usr/bin/ln
load_policyyesyes/sbin/load_policy, /usr/sbin/load_policy
loadfontnononone
loadkmapnononone
loginyesyes/usr/bin/login
lognamenoyes/usr/bin/logname
losetupyesyes/usr/bin/losetup
lsyesyes/usr/bin/ls
lsattryesyes/usr/bin/lsattr
lsmodyesyes/usr/bin/lsmod
lzmacatnoyes/usr/bin/lzmadec
makedevsnono/usr/bin/mknod
md5sumyesyes/usr/bin/md5sum
mdevnononone
mesgnoyes/usr/bin/mesg
mkdiryesyes/sbin/mkdir, /usr/bin/mkdir
mke2fsyesyes/usr/sbin/mke2fs
mkfifonoyes/usr/bin/mkfifo
mkfs.ext2yesyes/usr/sbin/mkfs.ext2
mkfs.ext3yesyes/usr/sbin/mkfs.ext3
mkfs.minixnononone - no support for Minix filesystem
mknodyesyes/usr/bin/mknod
mkswapyesyes/usr/sbin/mkswap
mktempyesyes/usr/bin/mktemp
modprobeyesyes/sbin/modprobe, /usr/sbin/modprobe
moreyesyes/usr/bin/more
mountyesyes/sbin/mount, /usr/bin/mount
mountpointnonoLook at the output of the mount command
mshnononone
mtyesyes/usr/bin/mt
mvyesyes/usr/bin/mv
nameifnononone
ncnoyes/usr/bin/nc
netstatnoyes/bin/netstat
nicenoyes/bin/nice
nohupnoyes/usr/bin/nohup
nslookupyesyes/usr/bin/nslookup
odnoyes/usr/bin/od
openvtyesyes/usr/bin/openvt
passwdnoyes/usr/bin/passwd
patchnoyes/usr/bin/patch
pidofyesyes/usr/sbin/pidof
pingyesyes/usr/bin/ping
ping6noyes/bin/ping6
pipe_progressnononone
pivot_rootnoyes/sbin/pivot_root
printenvnoyes/usr/bin/printenv
printfnoyes/usr/bin/printf
psyesyes/usr/bin/ps
pwdyesyes/usr/bin/pwd
rdatenoyes/usr/bin/rdate
readlinkyesyes/sbin/readlink, /usr/bin/readlink
readprofilenoyes/usr/sbin/readprofile
realpathnonoPython os.path.realpath()
renicenoyes/usr/bin/renice
resetnoyes/usr/bin/reset
rmyesyes/sbin/rm, /usr/bin/rm
rmdiryesyes/sbin/rmdir, /usr/bin/rmdir
rmmodyesyes/sbin/rmmod, /usr/bin/rmmod
routeyesyes/sbin/route, /usr/sbin/route
rpmyesyes/usr/bin/rpm
rpm2cpionoyes/usr/bin/rpm2cpio
run-partsnononone
runlevelnononone
rxnononone
sedyesyes/sbin/sed, /usr/bin/sed
seqnoyes/usr/bin/seq
setarchnoyes/usr/bin/setarch
setconsolenononone
setkeycodesnoyes/usr/bin/setkeycodes
setlogconsnononone
setsidnoyes/usr/bin/setsid
shyesyes/sbin/sh, /usr/bin/sh
sha1sumyesyes/usr/bin/sha1sum
sleepyesyes/sbin/sleep, /usr/bin/sleep
sortyesyes/usr/bin/sort
start-stop-daemonnononone
statnoyes/usr/bin/stat or Python os.stat()
stringsnoyes/usr/bin/strings
sttynoyes/bin/stty
sunoyes/bin/su
suloginnoyes/sbin/sulogin
sumnoyes/usr/bin/sum
swapoffyesyes/usr/sbin/swapoff
swaponyesyes/usr/sbin/swapon
switch_rootnoyes/sbin/switch_root
syncyesyes/usr/bin/sync
sysctlnoyes/sbin/sysctl
tailyesyes/usr/bin/tail
taryesyes/usr/bin/tar
teeyesyes/usr/bin/tee
telnetyesyes/usr/bin/telnet
telnetdnononone - no daemons available to scriptlets
testnoyes/usr/bin/test or [ in bash
tftpnoyes/usr/bin/tftp
timenoyes/usr/bin/time or Python
topyesyes/usr/bin/top
touchyesyes/sbin/touch, /usr/bin/touch
trnoyes/usr/bin/tr or Python
traceroutenoyes/bin/traceroute
trueyesyes/usr/bin/true
ttynoyes/usr/bin/tty
tune2fsyesyes/usr/sbin/tune2fs
udhcpcnono/sbin/dhclient
udhcpdnononone - no daemons available to scriptlets
umountyesyes/sbin/umount, /usr/bin/umount
unamenoyes/bin/uname or Python os.uname()
uncompressnononone
uniqyesyes/usr/bin/uniq
unix2dosnonosed 's/$//'
unlzmanoyes/usr/bin/unlzma
unzipnoyes/usr/bin/unzip
uptimenoyes/usr/bin/uptime or Python reading /proc/uptime
usleepnoyes/bin/usleep or Python
uudecodenoyes/usr/bin/uudecode or Python
uuencodenoyes/usr/bin/uuencode or Python
vconfigyesyes/usr/sbin/vconfig
viyesyes/usr/bin/vi
vlocknononone
watchnoyes/usr/bin/watch
watchdognononone
wcyesyes/usr/bin/wc
wgetyesyes/sbin/wget, /usr/bin/wget
whichnoyes/usr/bin/which
whonoyes/usr/bin/who
whoaminoyes/usr/bin/whoami
xargsyesyes/usr/bin/xargs
yesnoyes/usr/bin/yes
zcatyesyes/usr/bin/zcat
zcipnonoNetworkManager should take care of this
[a] Red Hat Enterprise Linux 6 ships with GNU awk rather than the busybox awk in the installation environment.
[b] GNU bash can provide basename functionality using string manipulation. If var="/usr/bin/command", then echo ${var##*/} gives command.
[c] GNU bash can provide dirname functionality using string manipulation. If var="/usr/bin/command", then echo ${var%/*} gives /usr/bin.

(Sebelumnya) 1 : Boot Process, Init, and Sh ...1 : Other Technical Documentat ... (Berikutnya)