centos6.5的epel源安装脚本
时间:2016-01-26 08:01 来源:linux.it.net.cn 作者:IT
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)
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) |