Centos6/7 升级更换epel 源
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 源安装)
本文出自 “hhslinux” 博客,谢绝转载!
以上是关于Centos6/7 升级更换epel 源的主要内容,如果未能解决你的问题,请参考以下文章