> CentOS > CentOS教程 >

centos6.5的epel源安装脚本

epel源是对yum源的补充

[root@ omserver ~]# vim epel.sh

#!/bin/bash

yum install -y yum-priorities

rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

rpm -q epel-release

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

echo "priority=11" >>/etc/yum.repos.d/epel.repo

yum makecache





sh epel.sh

  (责任编辑:IT)