Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix, apt 安装 h2o

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install h2o

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install h2o

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

Linux

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

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

Ubuntu apt已验证 · 92%
sudo apt install h2o

Ubuntu 24.04 LTS package indexes · h2o · 来源: archive.ubuntu.com

概览

软件包摘要

HTTP server with support for HTTP/1.x and HTTP/2

历史

项目历史与用法

H2O is an MIT-licensed C HTTP server and library created in the HTTP/2 transition era. It became notable among web-server and package-manager users for treating HTTP/2 prioritization, server push, TLS behavior, and later HTTP/3/QUIC support as core design concerns rather than bolt-on features.

项目历史

The H2O repository was created in August 2014. The README credits DeNA, Kazuho Oku, Tatsuhiko Kubo, and later contributors including Fastly, and describes H2O as an optimized HTTP server with HTTP/1.x, HTTP/2, and experimental HTTP/3 support.

H2O 1.0 arrived around the finalization of HTTP/2, and the Changes file records early work to support the finalized HTTP/2 version and fix issues reported by h2spec. The project subsequently added or refined TLS, OCSP, mruby scripting, FastCGI, reverse proxying, HTTP/2 priority behavior, server push, early hints, and libh2o APIs.

The release history shows a mature 2.x line through 2019, including security fixes for HTTP/2 denial-of-service vectors and other parser or logging issues. A 2026 repository release note records that maintainers had decided in 2019 to stop tagging regular versions, steering users toward the master branch instead of a backported stable-branch model.

采用历史

H2O emerged as HTTP/2 moved from draft work into production deployment, so its adoption history is tied to operators and developers who wanted a server that handled HTTP/2 semantics deeply. The official site emphasizes lower CPU and memory-bandwidth use than older HTTP servers and highlights prioritization schemes, server push, and 103 Early Hints.

Fastly's public author page for Kazuho Oku identifies him as the author of H2O, quicly, and picoTLS, linking the server to a broader ecosystem of transport-layer and TLS work. Package-manager adoption through Homebrew, MacPorts, Nix, and Ubuntu made H2O available to developers experimenting with modern HTTP stacks without building from source.

使用方式

H2O can run as a standalone HTTP server or be used as libh2o. Its documentation covers command options, YAML-style configuration, virtual hosts, paths, static files, FastCGI, proxying, access logs, compression, mruby, HTTP/2, HTTP/3, and operational features such as graceful restart.

For CLI/package users, H2O is commonly installed to test or operate a compact web server with HTTP/2 and HTTP/3 behavior, to compare prioritization and push behavior, or to embed HTTP serving behavior through the library.

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

H2O is significant because it is not just another packaged web server: it captured a particular period when HTTP/2 implementers were validating new protocol semantics with h2spec, HPACK, prioritization trees, TLS choices, and server push. It also connected package ecosystems to related low-level projects such as picohttpparser, quicly, and picoTLS.

For people who follow formulae and ports, H2O is a useful example of a high-performance network daemon whose packaging surface spans daemon deployment, local protocol testing, and C library reuse.

时间线

  • 2014: H2O repository created.
  • 2015: 1.0-era development aligned with finalized HTTP/2 support and h2spec fixes.
  • 2017: 2.2.0 series added a broad set of server, proxy, mruby, and logging features.
  • 2018: 2.3.0 beta added HTTP/2, proxy, mruby, TLS, and server-timing work.
  • 2019: 2.2.6 and 2.3.0-beta2 included fixes for HTTP/2 denial-of-service CVEs.
  • 2026: Release note documented the earlier decision to stop tagging versions and use master-branch commits.

Related projects

  • Related projects include h2spec for conformance testing, nghttp2 as another major HTTP/2 implementation, picohttpparser as a parser used in the H2O ecosystem, quicly for QUIC, picoTLS for TLS, and web servers such as nginx and Apache that H2O is often compared with.

安全态势

风险级别:orange

broad file, network, media, or database tool signal. formula declares a Homebrew service.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • broad file, network, media, or database tool signal
  • formula declares a Homebrew service

信号

  • metadata:service
  • text:http,server

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • formula 元数据声明了服务或守护进程块。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
h2ocli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本2.2.6
管理器更新时间2026-06-22
本地数据OK
上游当前
检测到的最新版本v2.2.6

https://github.com/h2o/h2o

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:h2o
版本2.2.6
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/h2o
主页https://github.com/h2o/h2o/
仓库https://github.com/h2o/h2o
上游文档https://github.com/h2o/h2o#readme
许可证MIT
源码归档https://github.com/h2o/h2o/archive/refs/tags/v2.2.6.tar.gz
最后更新2026-06-22T14:03:41-07:00
Pulseupdated
依赖openssl@3
构建依赖cmake, pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务declared
注意事项A basic example configuration file has been placed in $HOMEBREW_PREFIX/etc/h2o. You can find fuller, unmodified examples in $HOMEBREW_PREFIX/opt/h2o/share/h2o/examples.

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameh2o
Version Scheme0
Revision3
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedyes
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

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

Nix95%

h2o

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

h2o 2.2.5+dfsg2-8.1ubuntu3

optimized HTTP/1.x, HTTP/2 server

https://h2o.examp1e.net

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

h2o-doc 2.2.5+dfsg2-8.1ubuntu3

optimized HTTP/1.x, HTTP/2 server - documentation

https://h2o.examp1e.net

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

libh2o-dev 2.2.5+dfsg2-8.1ubuntu3

dev helpers of the H2O library compiled with libuv

https://h2o.examp1e.net

sudo apt install libh2o-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: h2o
  • 2 依赖
  • normalized package name match
  • 匹配方式:H2o
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libh2o-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libh2o-dev-common 2.2.5+dfsg2-8.1ubuntu3

H2O library headers

https://h2o.examp1e.net

sudo apt install libh2o-dev-common
  • Section: universe/libdevel
  • Architecture: all
  • Source Package: h2o
  • 2 依赖
  • normalized package name match
  • 匹配方式:H2o
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libh2o-dev-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libh2o-evloop-dev 2.2.5+dfsg2-8.1ubuntu3

dev helpers of the H2O library compiled with its own event loop

https://h2o.examp1e.net

sudo apt install libh2o-evloop-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: h2o
  • 2 依赖
  • normalized package name match
  • 匹配方式:H2o
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libh2o-evloop-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libh2o-evloop0.13t64 2.2.5+dfsg2-8.1ubuntu3

H2O library compiled with its own event loop

https://h2o.examp1e.net

sudo apt install libh2o-evloop0.13t64
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: h2o
  • 4 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:H2o
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libh2o-evloop0.13t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libh2o0.13t64 2.2.5+dfsg2-8.1ubuntu3

H2O library compiled with libuv

https://h2o.examp1e.net

sudo apt install libh2o0.13t64
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: h2o
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:H2o
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libh2o0.13t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
MacPorts95%

h2o

sudo port install h2o
  • normalized package name match
  • 匹配方式:H2o
MacPorts ports tree · api.github.com · MacPorts ports tree: www/h2o/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 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