RSS Feed

Installing HAProxy 1.5 on Debian Wheezy

Posted on 18 January 2014, 10:10 AM PST by Tim Underwood under Tips and Tricks


I recently upgraded our HAProxy server from Debian Squeeze to Debian Wheezy and wanted to play around with the HTTP Keep-Alive and SSL support in the latest dev version of HAProxy 1.5 (1.5-dev21 as of this post). I thought maybe wheezy-backports would have the latest 1.5 dev version but couldn't find anything. I started trying to figure out how to install HAProxy from Debian experimental when I found this site:

Instructions (from

Enable wheezy-backports by adding this to your /etc/apt/sources.list file OR by creating something like /etc/apt/sources.list.d/backports.list:

deb wheezy-backports main

Enable the repository by creating a /etc/apt/sources.list.d/haproxy.list file with this in it:

deb wheezy-backports main

Make sure you have the debian-keyring package installed:

sudo apt-get install debian-keyring

Import the proper GPG keys:

gpg --no-default-keyring --keyring=/usr/share/keyrings/debian-keyring.gpg \
    --export | sudo apt-key add -

Perform an apt-get update

sudo apt-get update

Finally, install HAProxy 1.5:

sudo apt-get install haproxy -t wheezy-backports

You should now have the latest HAProxy 1.5 version (which is 1.5-dev21 as of this blog post).

What about Ubuntu?

There is a PPA available for Ubuntu here:

    Find Tim Underwood on:
  • Twitter
comments powered by Disqus