阿里云ecs centOS8 安装yum命令
进入到安装下
cd /etc/yum.repos.d/
安装所需要的url:
可以使用浏览器打开:
http://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/
所需要下载的安装包:
yum-4.7.0-4.el8.noarch.rpm
yum-utils-4.0.21-3.el8.noarch.rpm
需要执行的获取包的命令
wget http://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/yum-4.7.0-4.el8.noarch.rpm
wget http://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/yum-utils-4.0.21-3.el8.noarch.rpm
安装命令
rpm -ivh --nodeps http://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/yum-utils-4.0.21-3.el8.noarch.rpm
rpm -ivh --nodeps http://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/yum-4.7.0-4.el8.noarch.rpm