Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper 安装 nghttp2

查看 nghttp2 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nghttp2

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install nghttp2

MacPorts ports tree · www/nghttp2/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add nghttp2

Alpine Linux edge package indexes · nghttp2 · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install nghttp2

Debian stable package indexes · nghttp2 · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install nghttp2

Fedora Rawhide package metadata · nghttp2 · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#nghttp2

nixpkgs package indexes · pkgs/by-name/ng/nghttp2/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install nghttp2

openSUSE Tumbleweed package metadata · nghttp2 · 来源: download.opensuse.org

概览

软件包摘要

HTTP/2 C Library

命令和别名

  • h2load
  • nghttp
  • nghttpd
  • nghttpx

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:http

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 5 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
h2loadcli全局可执行文件
nghttpcli全局可执行文件
nghttpdcli全局可执行文件
nghttpxcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.69.0
管理器更新时间2026-06-27
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/nghttp2/nghttp2

安装元数据

软件包元数据

软件包键brew:nghttp2
版本1.69.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/nghttp2
主页https://nghttp2.org/
仓库https://github.com/nghttp2/nghttp2
上游文档https://nghttp2.org/documentation
许可证MIT
源码归档https://github.com/nghttp2/nghttp2/releases/download/v1.69.0/nghttp2-1.69.0.tar.gz
最后更新2026-06-27T15:56:15-04:00
Pulseupdated
依赖c-ares, jemalloc, libev, libnghttp2, openssl@3
构建依赖pkgconf
macOS 提供的库libxml2
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenghttp2
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libnghttp2-14 1.64.0-1.1

library implementing HTTP/2 protocol (shared library)

https://nghttp2.org/

sudo apt install libnghttp2-14
  • Section: libs
  • Architecture: amd64
  • Source Package: nghttp2
  • 1 依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnghttp2-14 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libnghttp2-dev 1.64.0-1.1

library implementing HTTP/2 protocol (development files)

https://nghttp2.org/

sudo apt install libnghttp2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: nghttp2
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnghttp2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libnghttp2-doc 1.64.0-1.1

library implementing HTTP/2 protocol (documentation)

https://nghttp2.org/

sudo apt install libnghttp2-doc
  • Section: doc
  • Architecture: all
  • Source Package: nghttp2
  • 4 依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnghttp2-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

nghttp2 1.64.0-1.1

server, proxy and client implementing HTTP/2

https://nghttp2.org/

sudo apt install nghttp2
  • Section: httpd
  • Architecture: all
  • 3 依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nghttp2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

nghttp2-client 1.64.0-1.1

client implementing HTTP/2 protocol

https://nghttp2.org/

sudo apt install nghttp2-client
  • Section: httpd
  • Architecture: amd64
  • Source Package: nghttp2
  • 10 依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nghttp2-client from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

nghttp2-proxy 1.64.0-1.1

reverse proxy implementing HTTP/2 protocol

https://nghttp2.org/

sudo apt install nghttp2-proxy
  • Section: httpd
  • Architecture: amd64
  • Source Package: nghttp2
  • 11 依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nghttp2-proxy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

nghttp2-server 1.64.0-1.1

server implementing HTTP/2 protocol

https://nghttp2.org/

sudo apt install nghttp2-server
  • Section: httpd
  • Architecture: amd64
  • Source Package: nghttp2
  • 8 依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nghttp2-server from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

nghttp2

nix profile install nixpkgs#nghttp2
  • normalized package name match
  • 匹配方式:Nghttp2
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ng/nghttp2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libnghttp2-14 1.59.0-1build4

library implementing HTTP/2 protocol (shared library)

https://nghttp2.org/

sudo apt install libnghttp2-14
  • Section: libs
  • Architecture: amd64
  • Source Package: nghttp2
  • 1 依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnghttp2-14 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libnghttp2-dev 1.59.0-1build4

library implementing HTTP/2 protocol (development files)

https://nghttp2.org/

sudo apt install libnghttp2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: nghttp2
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnghttp2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libnghttp2-doc 1.59.0-1build4

library implementing HTTP/2 protocol (documentation)

https://nghttp2.org/

sudo apt install libnghttp2-doc
  • Section: doc
  • Architecture: all
  • Source Package: nghttp2
  • 4 依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnghttp2-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

nghttp2 1.59.0-1build4

server, proxy and client implementing HTTP/2

https://nghttp2.org/

sudo apt install nghttp2
  • Section: universe/httpd
  • Architecture: all
  • 3 依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nghttp2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

nghttp2-client 1.59.0-1build4

client implementing HTTP/2 protocol

https://nghttp2.org/

sudo apt install nghttp2-client
  • Section: universe/httpd
  • Architecture: amd64
  • Source Package: nghttp2
  • 10 依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nghttp2-client from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

nghttp2-proxy 1.59.0-1build4

reverse proxy implementing HTTP/2 protocol

https://nghttp2.org/

sudo apt install nghttp2-proxy
  • Section: universe/httpd
  • Architecture: amd64
  • Source Package: nghttp2
  • 12 依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nghttp2-proxy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

nghttp2-server 1.59.0-1build4

server implementing HTTP/2 protocol

https://nghttp2.org/

sudo apt install nghttp2-server
  • Section: universe/httpd
  • Architecture: amd64
  • Source Package: nghttp2
  • 8 依赖
  • normalized package name match
  • 匹配方式:Nghttp2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nghttp2-server from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

nghttp2 1.69.0-r0

HTTP/2 C client, server and proxy

https://nghttp2.org

sudo apk add nghttp2
  • License: MIT
  • Architecture: x86_64
  • Source Package: nghttp2
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nghttp2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nghttp2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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