Debian/Ubuntu HAProxy packages

The Debian HAProxy packaging team provides various versions of HAProxy packages for use on different Debian or Ubuntu systems. The following wizard helps you to find the package suitable for your system.

I am running and I want to install HAProxy version .

Instructions for {{solution.version}} release

Instructions

Alternative instructions

You can install it with the following commands:

# apt-get update
# apt-get install haproxy

You need to enable the experimental repository:

# echo deb {{ debian('experimental') }} main | \
      tee /etc/apt/sources.list.d/experimental.list

Then, use the following commands:

# apt-get update
# apt-get install haproxy -t experimental

You need to enable the backports repository backports repository:

# echo deb {{ debian(selected.release, solution.distribution) }} main | \
      sed 's/\(.*\)-sloppy \(.*\)/&@\1 \2/' | tr @ '\n' | \
      tee /etc/apt/sources.list.d/backports.list
# echo deb http://archive.ubuntu.com/ubuntu {{ selected.release }}-{{ solution.distribution }} main universe | \
      tee /etc/apt/sources.list.d/backports.list

Then, use the following commands:

# apt-get update
# apt-get install haproxy -t {{ selected.release }}-{{ solution.distribution }}

Sorry, there is no option available for you.

You need to enable a dedicated PPA with the following command:

# add-apt-repository ppa:vbernat/haproxy-{{ selected.version }}

Then, use the following commands:

# apt-get update
# apt-get install haproxy

First, you need to enable the backports repository:

# echo deb {{ debian(selected.release, 'backports') }} main | \
      tee /etc/apt/sources.list.d/backports.list

Then, you need to enable a dedicated repository:

# curl http://haproxy.debian.net/bernat.debian.org.gpg | \
      apt-key add -
# echo deb http://haproxy.debian.net {{ selected.release }}-backports-{{ selected.version }} main | \
      tee /etc/apt/sources.list.d/haproxy.list
EOF

Then, use the following commands:

# apt-get update
# apt-get install haproxy -t {{ selected.release }}-backports-{{ selected.version }}

You will get the latest release of HAProxy {{ selected.version }}.

You will get a stable release of HAProxy {{ selected.version }}. This means you may not get the latest version but important fixes from later versions are included.

Source code available on GitHub