Installing HAProxy on CentOS 6.3?

Elijah Paul asked:

This is a weird one.

I’ve installed the EPEL for CentOS 6 via

# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

The tried to install HAProxy:

# yum update
# yum install haproxy

But receive:

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: ftp.heanet.ie
 * epel: fedora.mirror.nexicom.net
 * extras: ftp.heanet.ie
 * updates: ftp.heanet.ie
Setting up Install Process
No package haproxy available.
Error: Nothing to do

Can’t figure out why haproxy is not found! Help?

My answer:


The haproxy package has been removed from EPEL because it is now included with RHEL 6.4 (and will be in derivative distributions after they build 6.4).

Red Hat Enterprise Linux 6.4 introduces the haproxy package as a Technology Preview.

If you need it now, you can obtain Red Hat’s 6.4 SRPM and rebuild it on your system (the same way CentOS will shortly). For example:

wget http://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/haproxy-1.4.22-3.el6.src.rpm
mock -r epel-6-x86_64 haproxy-1.4.22-3.el6.src.rpm

Otherwise you can wait for CentOS 6.4 and then it will be available through the base repository.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.