Friday, December 4, 2009

Script for installing rpmforge repo on CentOS

At work we were battling with out of date packages and packages that just simply weren't in the repos. To solve this we added rpm forge to our centOS boxes.

These are two simple scripts that add based on your architecture.
64 Bit Version of RPMForge on Centos


#!/bin/bash
mkdir repo
cd repo
yum -y install yum-priorities
wget http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm
yum check-update
echo "priority = 99" >> /etc/yum.repos.d/rpmforge.repo


32 Bit Version of RPMForge on Centos

#!/bin/bash
mkdir repo
cd repo
yum -y install yum-priorities
wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm
yum check-update
echo "priority = 99" >> /etc/yum.repos.d/rpmforge.repo

No comments: