# Install nghttp2 with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

HTTP/2 C Library. Version 1.69.0 via Homebrew; verified 2026-06-27.

## Install

```sh
sudo av install brew:nghttp2
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install nghttp2
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nghttp2
```

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

### Linux

- apk (92%):

```sh
sudo apk add nghttp2
```

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

- Debian apt (92%):

```sh
sudo apt install libnghttp2-14
```

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

- dnf (92%):

```sh
sudo dnf install libnghttp2
```

  Evidence: Fedora Rawhide package metadata: libnghttp2 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#nghttp2
```

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

- zypper (92%):

```sh
sudo zypper install libnghttp2-14
```

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

## Package facts

- **Package key:** brew:nghttp2
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/nghttp2>
- **Version:** 1.69.0
- **Source summary:** HTTP/2 C Library
- **Homepage:** <https://nghttp2.org/>
- **Repository:** <https://github.com/nghttp2/nghttp2>
- **Upstream docs:** <https://nghttp2.org/documentation>
- **License:** MIT
- **Source archive:** <https://github.com/nghttp2/nghttp2/releases/download/v1.69.0/nghttp2-1.69.0.tar.gz>
- **Last updated:** 2026-06-27T15:56:15-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- h2load (cli)
- nghttp (cli)
- nghttpd (cli)
- nghttpx (cli)
- h2load (alias)
- nghttp (alias)
- nghttpd (alias)
- nghttpx (alias)

## Dependencies

- c-ares
- jemalloc
- libev
- libnghttp2
- openssl@3

## Build dependencies

- pkgconf

## Uses from macOS

- libxml2

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.69.0
- Package-manager updated: 2026-06-27
- Local data: ok
- Upstream repository: https://github.com/nghttp2/nghttp2
- info: No cached GitHub release or tag data was available.
## Project history and usage

nghttp2 is a C implementation of HTTP/2's framing layer plus command-line tools: `nghttp` for client/frame inspection, `nghttpd` for a test server, `nghttpx` for proxying, and `h2load` for benchmarking. It also exposes HPACK encoding and decoding APIs.

### Project history

The project came out of the HTTP/2 standardization period. Its own documentation says the code base was forked from Tatsuhiro Tsujikawa's earlier spdylay project, a C implementation of Google's SPDY protocol, and was originally based on RFC 7540 and RFC 7541 before moving toward RFC 9113.

That origin explains the shape of the package: it is not only a library, but a lab bench for HTTP/2. The tools let implementers speak h2 or h2c directly, inspect frames, run a proxy, and stress-test servers while the library handles the binary framing details.

### Adoption history

nghttp2 became important because large projects did not want to hand-roll HTTP/2 framing. Apache httpd's documentation says `mod_http2` uses nghttp2 as its implementation base and requires libnghttp2 when building HTTP/2 support.

curl also made nghttp2 part of the mainstream HTTP/2 toolchain. curl's 7.43.0 changelog in June 2015 required nghttp2 1.0.0 or later for HTTP/2 multiplexing support, and everything curl documents HTTP/2 support for HTTP and HTTPS when curl is built with the needed prerequisites.

### How it is used

Developers install nghttp2 directly when they need the command-line tools, or indirectly as a dependency for HTTP clients and servers. `nghttp` is useful for seeing HTTP/2 frames rather than just HTTP semantics, while `h2load` is a quick load generator for h2 endpoints.

Packagers care about nghttp2 because it is a protocol-library dependency with ABI and feature implications. A curl or Apache build with libnghttp2 available can expose HTTP/2 support; without it, the package may build but lose protocol behavior that users assume is present.

### Why package nerds care

nghttp2 is the little C library behind a lot of HTTP/2 enablement. It is a classic packaging multiplier: small on its own, but it changes the capabilities of curl, Apache httpd, and other network stacks that link to it.

### Timeline

- 2012: Source files in the nghttp2 tree carry early copyright dates from Tatsuhiro Tsujikawa's implementation work.
- 2013: nghttp2 emerged from the spdylay/SPDY lineage during HTTP/2 standardization.
- 2015-06-17: curl 7.43.0 documented HTTP/2 multiplexing support requiring nghttp2 1.0.0 or later.
- 2015: Apache httpd 2.4 HTTP/2 support standardized around `mod_http2`, which uses libnghttp2 as its implementation base.

### Related projects

- spdylay
- HTTP/2
- HPACK
- curl
- Apache httpd mod_http2

### Sources

- <https://curl.se/changes.html>
- <https://everything.curl.dev/http/versions/http2.html>
- <https://formulae.brew.sh/formula/nghttp2>
- <https://github.com/nghttp2/nghttp2>
- <https://httpd.apache.org/docs/current/howto/http2.html>
- <https://nghttp2.org/documentation/package_README.html>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

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

## Other Package-Manager Records

- Debian apt - libnghttp2-14 - 1.64.0-1.1: normalized package name match | Debian stable package indexes: libnghttp2-14 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library implementing HTTP/2 protocol (shared library) | https://nghttp2.org/
- Debian apt - libnghttp2-dev - 1.64.0-1.1: normalized package name match | Debian stable package indexes: libnghttp2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library implementing HTTP/2 protocol (development files) | https://nghttp2.org/
- Debian apt - libnghttp2-doc - 1.64.0-1.1: normalized package name match | Debian stable package indexes: libnghttp2-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library implementing HTTP/2 protocol (documentation) | https://nghttp2.org/
- Debian apt - nghttp2 - 1.64.0-1.1: normalized package name match | Debian stable package indexes: nghttp2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | server, proxy and client implementing HTTP/2 | https://nghttp2.org/
- Debian apt - nghttp2-client - 1.64.0-1.1: normalized package name match | Debian stable package indexes: nghttp2-client from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | client implementing HTTP/2 protocol | https://nghttp2.org/
- Debian apt - nghttp2-proxy - 1.64.0-1.1: normalized package name match | Debian stable package indexes: nghttp2-proxy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | reverse proxy implementing HTTP/2 protocol | https://nghttp2.org/
- Debian apt - nghttp2-server - 1.64.0-1.1: normalized package name match | Debian stable package indexes: nghttp2-server from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | server implementing HTTP/2 protocol | https://nghttp2.org/
- Nix - nghttp2: normalized package name match | nixpkgs package indexes: pkgs/by-name/ng/nghttp2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libnghttp2-14 - 1.59.0-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: libnghttp2-14 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library implementing HTTP/2 protocol (shared library) | https://nghttp2.org/
- Ubuntu apt - libnghttp2-dev - 1.59.0-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: libnghttp2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library implementing HTTP/2 protocol (development files) | https://nghttp2.org/
- Ubuntu apt - libnghttp2-doc - 1.59.0-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: libnghttp2-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library implementing HTTP/2 protocol (documentation) | https://nghttp2.org/
- Ubuntu apt - nghttp2 - 1.59.0-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: nghttp2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | server, proxy and client implementing HTTP/2 | https://nghttp2.org/
- Ubuntu apt - nghttp2-client - 1.59.0-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: nghttp2-client from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | client implementing HTTP/2 protocol | https://nghttp2.org/
- Ubuntu apt - nghttp2-proxy - 1.59.0-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: nghttp2-proxy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | reverse proxy implementing HTTP/2 protocol | https://nghttp2.org/
- Ubuntu apt - nghttp2-server - 1.59.0-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: nghttp2-server from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | server implementing HTTP/2 protocol | https://nghttp2.org/
- apk - nghttp2 - 1.69.0-r0: normalized package name match | Alpine Linux edge package indexes: nghttp2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | HTTP/2 C client, server and proxy | https://nghttp2.org


## 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.
- [c-ares](https://www.automicvault.com/pkg/brew/c-ares/) - Runtime dependency declared by Homebrew.
- [jemalloc](https://www.automicvault.com/pkg/brew/jemalloc/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [proxygen](https://www.automicvault.com/pkg/brew/proxygen/) - Shares av.db curated category or tags: cli, http, http2, networking.
- [httping](https://www.automicvault.com/pkg/brew/httping/) - Shares av.db curated category or tags: cli, http, networking.
- [neon](https://www.automicvault.com/pkg/brew/neon/) - Shares av.db curated category or tags: c-library, cli, http, networking.
- [tinyproxy](https://www.automicvault.com/pkg/brew/tinyproxy/) - Shares av.db curated category or tags: cli, http, networking.
- [gensio](https://www.automicvault.com/pkg/brew/gensio/) - Shares av.db curated category or tags: c-library, cli, networking.
- [getparty](https://www.automicvault.com/pkg/brew/getparty/) - Shares av.db curated category or tags: cli, http, networking.
- [gsasl](https://www.automicvault.com/pkg/brew/gsasl/) - Shares av.db curated category or tags: c-library, cli, networking.
- [httpflow](https://www.automicvault.com/pkg/brew/httpflow/) - Shares av.db curated category or tags: cli, http, networking.
- [aria2](https://www.automicvault.com/pkg/brew/aria2/) - Local package facts share a topical domain. Shared terms: ares, c-ares, cli, http, networking.

## Combined YAML source

View the package source record on GitHub. [combined/nghttp2.yml](https://github.com/automic-vault/db/blob/main/combined/nghttp2.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
