rpmforge

Centos установка RPMforge и EPEL

Скрипт автоматической установки RPMforge и EPEL скачать можно здесь install_EPEL_RPMforge.sh
#!/bin/bash
 
ver=`cat /etc/redhat-release | sed -e "s/.*release \(.\).*/\1/"`;
x64=`uname -a | grep "x86_64" | wc -l`;
 
rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
 
if [ "$ver" = "5" ] && [ "$x64" = "0" ]; then
echo "
Install epel rpmforge Centos 5 x86
"
wget -O /tmp/rpmforge.rpm http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -i /tmp/rpmforge.rpm
 
fi
 
if [ "$ver" = "5" ] && [ "$x64" = "1" ]; then
echo "
Install epel rpmforge Centos 5 x64
"
wget -O /tmp/rpmforge.rpm http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -i /tmp/rpmforge.rpm
 
fi
 
if [ "$ver" = "6" ] && [ "$x64" = "1" ]; then
echo "
Install epel rpmforge Centos 6 x64
"
wget -O /tmp/rpmforge.rpm http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
rpm -i /tmp/rpmforge.rpm
 
fi
 
if [ "$ver" = "6" ] && [ "$x64" = "0" ]; then
echo "
Install epel rpmforge Centos 6 x86
"
wget -O /tmp/rpmforge.rpm http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm 
rpm -i /tmp/rpmforge.rpm
 
fi
VN:D [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:D [1.9.22_1171]
Rating: +1 (from 1 vote)

Login

Рубрики

Праздники

Армейские праздники

Счетчики

Яндекс.Метрика