Skip to content

Commit

Permalink
添加epel源
Browse files Browse the repository at this point in the history
  • Loading branch information
ppabc committed Jun 6, 2016
1 parent 7c50afb commit f2e1a85
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions ansible/ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#安装Ansible,安装EPEL第三方yum源
rpm -Uvh epel-release-6-8.noarch.rpm
yum install gcc python-devel python-pip -y
yum install ansible -y

##添加环境变量以便vi能正常显示中文注释.
Expand Down
30 changes: 30 additions & 0 deletions epel/epel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
## 2016-06-06
## http://www.aqzt.com
##email: [email protected]
##robert yu
##centos 6

#http://mirrors.sohu.com/fedora-epel/
rpm -Uvh http://mirrors.sohu.com/fedora-epel/epel-release-latest-6.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

rpm -Uvh http://mirrors.sohu.com/fedora-epel/epel-release-latest-7.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7


#http://download.fedoraproject.org/pub/epel/
rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel//epel-release-latest-6.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel//epel-release-latest-7.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7


#http://mirrors.aliyun.com/epel/
rpm -Uvh http://mirrors.aliyun.com/epel/epel-release-latest-6.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

rpm -Uvh http://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

0 comments on commit f2e1a85

Please sign in to comment.