Centos6/7 升级更换epel 源

前端之家收集整理的这篇文章主要介绍了Centos6/7 升级更换epel 源前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1,CentOS 6 x86_64


wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo

yum clean all

yum makecache

yum repolist

rm -rf /etc/yum.repos.d/*

wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo http://mirrors.aliyun.com/repo/Centos-6.repo


2,CentOS 7 x86_64

wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm

rpm -ivh epel-release-7-10.noarch.rpm

yum repolist (检查是否安装成功)

yum --enablerepo=epel info Nginx (查看)yum --enablerepo=epel install Nginx (用epel 源安装)

原文链接:https://www.f2er.com/centos/376493.html

猜你在找的CentOS相关文章