两台centos,用yum install 安装,一台成功,一台失败

记录一下问题:

两台centos,用yum install 安装软件,一台成功,一台失败 

第一步:查看yum源

 yum repolist enabled

疑问:centos安装的方法一致,但yum源不一样,不知道为什么

yum源有  阿里云、网易、163 等

成功的那台,多了 epel

 

 第二步 : 配置epel

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo


rpm -Uvh https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm

此时 在 yum  install  软件,即可成功

原文地址:https://www.cnblogs.com/yancun8141/p/11156044.html