1. 程式人生 > >Centos6/7 升級更換epel 源

Centos6/7 升級更換epel 源

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 源