1.当找不到yum命令时,可以来安装一下
首先你要知道你使用的基础是镜像是什么版本
如果是centos肯定有yum
如果是ubuntu那即是apt-get
如果是alpine那即是apk
测是否安装了build-essential程序包,输入命令:
apt-get install build-essential
安装yum,输入命令:
apt-get install yum
即可安装成功
2.yum安装其他软件提示问题时
root@b7a022bba215:/# yum install wget
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
You can enable repos with yum-config-manager --enable <repo>
....未解决
3.找不到wget命令时
yum -y install wget