Postgresql 8.1.x on Centos from Centos Testing
CentOS-Testing.repo for just the postgresql packages
cat >> /etc/yum.repos.d/CentOS-Base.repo <<EOF [c4-testing] name=CentOS-4 Testing baseurl=http://dev.centos.org/centos/\$releasever/testing/\$basearch/ enabled=1 gpgcheck=1 gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing includepkgs=postgresql* compat-postgresql* EOF
cat >> /etc/yum.conf <<EOF exclude=postgresql* compat-postgresql* EOF
This has been moved into CentosPlus now. Same basic procedure:
vi /etc/yum.repos.d/CentOS-Base.repo #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 includepkgs=postgresql* compat-postgresql*
cat >> /etc/yum.conf <<EOF exclude=postgresql* compat-postgresql* EOF