linux 离线安装yum组件
以Centos7.x为例。
执行如下命令查看是否有安装yum,若返回为空,则表示没安装 rpm -qa |grep yum 解决方法1:(适合Centos7.x) 1、下载阿里云的yum安装包安装: wget https://mirrors.aliyun.com/centos-vault/7.4.1708/os/x86_64/Packages/yum-3.4.3-154.el7.centos.noarch.rpm wget https://mirrors.aliyun.com/centos-vault/7.4.1708/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm wget https://mirrors.aliyun.com/centos-vault/7.4.1708/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-42.el7.noarch.rpm 2、执行如下命令安装即可正常。 rpm -ivh yum*