# Install haproxy with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Reliable, high performance TCP/HTTP load balancer. Version 3.4.2 via Homebrew; verified 2026-07-03.

## Install

```sh
sudo av install brew:haproxy
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install haproxy
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install haproxy
```

  Evidence: MacPorts ports tree: net/haproxy/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add haproxy
```

  Evidence: Alpine Linux edge package indexes: haproxy from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install haproxy
```

  Evidence: Debian stable package indexes: haproxy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install haproxy
```

  Evidence: Fedora Rawhide package metadata: haproxy from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#haproxy
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ha/haproxy/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S haproxy
```

  Evidence: Arch Linux sync databases: haproxy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install haproxy
```

  Evidence: openSUSE Tumbleweed package metadata: haproxy from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:haproxy
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/haproxy>
- **Version:** 3.4.2
- **Source summary:** Reliable, high performance TCP/HTTP load balancer
- **Homepage:** <https://www.haproxy.org/>
- **Repository:** <https://git.haproxy.org/?p=haproxy.git>
- **Upstream docs:** <https://docs.haproxy.org/>
- **License:** GPL-2.0-or-later WITH openvpn-openssl-exception
- **Source archive:** <https://www.haproxy.org/download/3.4/src/haproxy-3.4.2.tar.gz>
- **Last updated:** 2026-07-03T10:39:29Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- haproxy (cli)
- haproxy (alias)

## Dependencies

- openssl@3
- pcre2

## Uses from macOS

- libxcrypt

## Install behavior

- Post-install hook: not defined
- Service: declared
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.4.2
- Package-manager updated: 2026-07-03
- Local data: ok
- Upstream repository: https://www.haproxy.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

HAProxy is a long-running open source TCP and HTTP reverse proxy and load balancer. Its project identity is unusually tied to operations culture: it is a small, fast daemon, configured with plain text, used for health checks, traffic steering, failover, TLS termination, observability, and controlled reloads in Unix-like production environments.

For package users, HAProxy matters because it sits at the point where upstream release branches, distribution packaging, TLS libraries, init systems, and operational safety meet. The Homebrew package represents the general HAProxy command-line daemon rather than a language library or desktop application.

### Project history

The HAProxy history page traces the project back to Zprox, a tool used in 1999 to test how applications behaved with many slow modem clients. In 2000 Zprox gained header rewriting and a minimal configuration language with concepts such as listeners and servers; in 2001 HAProxy 1.0 appeared as a tool for offloading traffic from hardware load balancers.

The public branch table on haproxy.org places HAProxy 1.0 on 2001-12-16, followed by 1.1 in 2002, 1.2 in 2003, and 1.3 in 2006. The early releases established the durable shape of the program: a single-purpose network daemon, a configuration file centered on frontends/backends/listeners/servers, health checking, cookie persistence, logging, and incremental protocol support.

HAProxy evolved by adding operational features without changing its basic package identity. HAProxy 1.5 brought SSL and compression into the community branch, 1.8 introduced multithreading and HTTP/2-era plumbing, 2.0 added cloud-native-adjacent features such as the Kubernetes Ingress Controller, Data Plane API, and Prometheus exporter, and 2.8 added production-oriented QUIC work along with reliability, observability, and usability improvements.

### Adoption history

HAProxy became a standard choice for high-traffic HTTP and TCP load balancing because it combined low overhead, predictable behavior, and admin-friendly configuration. The project homepage emphasizes high availability, reliability, performance, and security, and the package appears across many Unix package managers in the supplied input facts.

Its adoption also reflects a packaging pattern: operations teams often need distro or package-manager builds for repeatable deployment, while also caring about exact upstream branch support, OpenSSL or alternate TLS linkage, systemd integration, and whether a branch receives only critical fixes or broader maintenance.

### How it is used

Typical use is as a front-line or internal load balancer: accepting HTTP or raw TCP connections, selecting backends, checking server health, adding forwarded headers, terminating TLS, exposing stats, and allowing controlled reloads or runtime changes.

For Homebrew users, the package provides the `haproxy` executable for local development, test rigs, laptop-hosted reverse proxying, and small deployments. Production Unix installations commonly pair the daemon with a service manager and a configuration file such as `haproxy.cfg`, but the batch input has no official config path to preserve.

### Why package nerds care

HAProxy is package-nerd material because it is both tiny in surface area and heavy in operational consequences. A package revision can change TLS behavior, threading defaults, QUIC support, Lua support, compression, service files, or hardening flags.

The project's parallel branch model makes version selection meaningful. A formula named `haproxy` follows the general package role, while versioned formulae such as `haproxy@2.8` exist to keep a particular upstream branch available for operators who need that branch's ABI, behavior, or support window.

### Timeline

- 1999: Zprox used as a slow-client testing tool.
- 2001-12-16: HAProxy 1.0 branch listed by haproxy.org.
- 2002-03-10: HAProxy 1.1 branch adds early scheduler, health-check, logging, and cookie features.
- 2003-11-09: HAProxy 1.2 branch adds client-side IPv6 and maxconn-era scaling features.
- 2014-06-19: HAProxy 1.5 branch listed; project history highlights SSL and compression.
- 2017-11-26: HAProxy 1.8 branch listed; project history highlights multithreading and HTTP/2-related work.
- 2019-06-16: HAProxy 2.0 branch listed; project history highlights cloud-native logging, Kubernetes ingress, Data Plane API, and Prometheus exporter.
- 2023-05-31: HAProxy 2.8 branch listed; project history and homepage describe QUIC and operational improvements in that branch.

### Related projects

- Related infrastructure includes NGINX, Envoy, Varnish, Keepalived, the HAProxy Kubernetes Ingress Controller, the HAProxy Data Plane API, and tools that consume HAProxy's stats or runtime interfaces.
- The PROXY protocol is closely associated with HAProxy's ecosystem because it lets upstream proxies preserve client connection metadata across TCP hops.

### Sources

- <https://docs.haproxy.org/>
- <https://github.com/haproxy/haproxy/>
- <https://www.haproxy.com/history>
- <https://www.haproxy.org/>


## Security Notes

formula declares a Homebrew service.

- **Geiger risk:** orange / medium
- formula declares a Homebrew service

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** haproxy
- **Aliases:** haproxy@3.4
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - haproxy - 3.0.11-1+deb13u2: normalized package name match | Debian stable package indexes: haproxy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast and reliable load balancing reverse proxy | http://www.haproxy.org/
- Debian apt - haproxy-doc - 3.0.11-1+deb13u2: normalized package name match | Debian stable package indexes: haproxy-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast and reliable load balancing reverse proxy (HTML documentation) | http://www.haproxy.org/
- Debian apt - vim-haproxy - 3.0.11-1+deb13u2: normalized package name match | Debian stable package indexes: vim-haproxy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | syntax highlighting for HAProxy configuration files | http://www.haproxy.org/
- Nix - haproxy: normalized package name match | nixpkgs package indexes: pkgs/by-name/ha/haproxy/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - haproxy - 2.8.5-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: haproxy from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | fast and reliable load balancing reverse proxy | http://www.haproxy.org/
- Ubuntu apt - haproxy-doc - 2.8.5-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: haproxy-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast and reliable load balancing reverse proxy (HTML documentation) | http://www.haproxy.org/
- Ubuntu apt - vim-haproxy - 2.8.5-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: vim-haproxy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | syntax highlighting for HAProxy configuration files | http://www.haproxy.org/
- apk - haproxy - 3.4.0-r0: normalized package name match | Alpine Linux edge package indexes: haproxy from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A TCP/HTTP reverse proxy for high availability environments | https://www.haproxy.org/
- apk - haproxy-doc - 3.4.0-r0: normalized package name match | Alpine Linux edge package indexes: haproxy-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A TCP/HTTP reverse proxy for high availability environments (documentation) | https://www.haproxy.org/
- apk - haproxy-openrc - 3.4.0-r0: normalized package name match | Alpine Linux edge package indexes: haproxy-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A TCP/HTTP reverse proxy for high availability environments (OpenRC init scripts) | https://www.haproxy.org/
- dnf - haproxy - 3.4.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: haproxy from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Reliable, high-performance TCP/HTTP load-balancing reverse proxy | https://www.haproxy.org/
- pacman - haproxy - 3.4.0-2: normalized package name match | Arch Linux sync databases: haproxy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Reliable, high performance TCP/HTTP load balancer | https://www.haproxy.org/
- zypper - haproxy - 3.4.0+git0.64a335366-1.1: normalized package name match | openSUSE Tumbleweed package metadata: haproxy from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | The Reliable, High Performance TCP/HTTP Load Balancer | https://www.haproxy.org/
- MacPorts - haproxy: normalized package name match | MacPorts ports tree: net/haproxy/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched web development metadata.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pcre2](https://www.automicvault.com/pkg/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [haproxy@2.8](https://www.automicvault.com/pkg/brew/haproxy-2-8/) - Package name indicates the same formula family.
- [traefik](https://www.automicvault.com/pkg/brew/traefik/) - Shares av.db curated category or tags: cli, load-balancer, networking, proxy, reverse-proxy.
- [fabio](https://www.automicvault.com/pkg/brew/fabio/) - Shares av.db curated category or tags: cli, load-balancer, networking, reverse-proxy.
- [trafficserver](https://www.automicvault.com/pkg/brew/trafficserver/) - Shares av.db curated category or tags: cli, http, networking, proxy, reverse-proxy.
- [frpc](https://www.automicvault.com/pkg/brew/frpc/) - Shares av.db curated category or tags: cli, networking, proxy, reverse-proxy.
- [frps](https://www.automicvault.com/pkg/brew/frps/) - Shares av.db curated category or tags: cli, networking, proxy, reverse-proxy.
- [go-camo](https://www.automicvault.com/pkg/brew/go-camo/) - Shares av.db curated category or tags: cli, http, networking, proxy.
- [gost](https://www.automicvault.com/pkg/brew/gost/) - Shares av.db curated category or tags: cli, networking, proxy, reverse-proxy.
- [privoxy](https://www.automicvault.com/pkg/brew/privoxy/) - Shares av.db curated category or tags: cli, http, networking, proxy.

## Combined YAML source

View the package source record on GitHub. [combined/haproxy.yml](https://github.com/automic-vault/db/blob/main/combined/haproxy.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
