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 源安装)

相关文章

文章浏览阅读903次。4.清除缓存目录(/var/cache/yum)下的软件...
文章浏览阅读1.5k次。Python 是一种高级解释性编程语言,已被...
文章浏览阅读2.6k次。打开终端或控制台,以root或具有sudo权...
文章浏览阅读744次,点赞24次,收藏26次。目标:通过AppSrv为...
文章浏览阅读1.1w次,点赞8次,收藏26次。chmod命令来自于英...
文章浏览阅读1.2k次。yum源的URL地址,本例中是文件系统的路...