热门IT资讯网

docker预告-命令与安装包

发表于:2024-11-24 作者:热门IT资讯网编辑
编辑最后更新 2024年11月24日,docker 预告############1yum install --installroot=/home/chen/vhost bashyum install --installroot=/hom
docker  预告

############1
yum install --installroot=/home/chen/vhost bash
yum install --installroot=/home/chen/vhost coreutils

rpm -qf /etc/passwd 查看由什么包提供的命名
setup-2.8.71-6.el7.noarch

rpm -qf /usr/bin/ls

coreutils-8.22-15.el7.x86_64

which which

alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
/usr/bin/alias
/usr/bin/which

rpm -qf /usr/bin/which

which-2.20-7.el7.x86_64

rpm -qf /usr/bin/vmstat

procps-ng-3.3.10-3.el7.x86_64

rpm -qf /usr/sbin/useradd

shadow-utils-4.1.5.1-18.el7.x86_64

rpm -qf /usr/bin/passwd

passwd-0.79-4.el7.x86_64

rpm -qf /usr/sbin/ifconfig

net-tools-2.0-0.17.20131004git.el7.x86_64

rpm -qf /usr/bin/yum

yum-3.4.3-132.el7.centos.0.1.noarch

#########################
yum install --installroot=/home/chen/vhost bash
yum install --installroot=/home/chen/vhost coreutils

yum===include===>bash/coreutils**
yum install --installroot=/home/chen/vhost
procps-ng**

##################################FirstInstall
yum install --installroot=/home/chen/vhost yum
291M /home/chen/vhost

chroot /home/chen/vhost/

bash-4.2# yum install net-tools ---ifconfig
405M /home/chen/vhost
yum install shadow-utils ---useradd
yum install passwd -----passwd

du -sh /home/chen/vhost

406M /home/chen/vhost

#########################

0