码迷,mamicode.com
首页 > 其他好文 > 详细

Centos6/7 升级更换epel 源

时间:2017-08-03 12:34:18      阅读:163      评论:0      收藏:0      [点我收藏+]

标签: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 源

标签:epel

原文地址:http://hhslinux.blog.51cto.com/5656312/1953220

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!