安装rpmforge yum源

#!/bin/bash
rpm -q rpmforge-release > /dev/null &&
echo "rpmforge already installed in this Server.\n" &&
exit 1
uname -i|grep -q 64
if [ $? -eq 1 ]
        then
        rpm -ivh http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
        else
        rpm -ivh http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
fi

你可能感兴趣的:(职场,yum,RPMForge,休闲)