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 Alternative instructions for {{ solution.version === 'latest' ? 'the' : 'a' }} {{ solution.version }} release

You can install it with the following commands:

# apt-get update
# apt-get install haproxy={{ selected.version }}.\*

You need to enable the experimental repository:

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

Then, use the following commands:

# apt-get update
# apt-get install haproxy={{ selected.version }}.\*

You need to enable the backports repository backports repository:

# echo deb {{ debian(selected.release, solution.distribution) }} main \
      > /etc/apt/sources.list.d/backports.list
# echo deb {{ debian(selected.release, solution.distribution.replace('-sloppy', '')) }} main \
      >> /etc/apt/sources.list.d/backports.list
# echo deb http://archive.ubuntu.com/ubuntu {{ selected.release }}-{{ solution.distribution }} main universe \
      > /etc/apt/sources.list.d/backports.list

Then, use the following commands:

# apt-get update
# apt-get install haproxy={{ selected.version }}.\* -t {{ selected.release }}-{{ solution.distribution }} -t {{ selected.release }}-{{ solution.distribution.replace('-sloppy', '') }}

Sorry, there is no option available for you.

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

# apt-get install --no-install-recommends software-properties-common
# add-apt-repository ppa:vbernat/haproxy-{{ selected.version }}

Then, use the following command:

# apt-get install haproxy={{ selected.version }}.\*

You need to enable a dedicated repository:

# curl https://haproxy.debian.net/bernat.debian.org.gpg \
      > /etc/apt/trusted.gpg.d/haproxy.debian.net.gpg
# echo deb http://haproxy.debian.net {{ selected.release }}-backports-{{ selected.version }} main \
      > /etc/apt/sources.list.d/haproxy.list
# curl https://haproxy.debian.net/bernat.debian.org.gpg \
      | gpg --dearmor > /usr/share/keyrings/haproxy.debian.net.gpg
# echo deb "[signed-by=/usr/share/keyrings/haproxy.debian.net.gpg]" \
      http://haproxy.debian.net {{ selected.release }}-backports-{{ selected.version }} main \
      > /etc/apt/sources.list.d/haproxy.list

Then, use the following commands:

# apt-get update
# apt-get install haproxy={{ selected.version }}.\*

You will get the latest release of HAProxy {{ selected.version }} (and stick to this branch). (and stick to this branch). (or a later version).

You will get a stable release of HAProxy {{ selected.version }}: you may not get the latest version but important fixes from later versions are included. Moreover, regressions are unlikely.

Website source code