# 使用 Homebrew, apk, Nix, pacman, apt 安装 opendht

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

## 安装

```sh
sudo av install brew:opendht
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install opendht
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add opendht
```

  证据: Alpine Linux edge package indexes: opendht from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#opendht
```

  证据: nixpkgs package indexes: pkgs/by-name/op/opendht/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S opendht
```

  证据: Arch Linux sync databases: opendht from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Ubuntu apt (92%):

```sh
sudo apt install dhtnode
```

  证据: Ubuntu 24.04 LTS package indexes: dhtnode from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

## 软件包事实

- **软件包键:** brew:opendht
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/opendht>
- **版本:** 3.7.1
- **来源摘要:** C++17 Distributed Hash Table implementation
- **主页:** <https://github.com/savoirfairelinux/opendht>
- **仓库:** <https://github.com/savoirfairelinux/opendht>
- **许可证:** MIT
- **源码归档:** <https://github.com/savoirfairelinux/opendht/archive/refs/tags/v3.7.1.tar.gz>
- **最后更新:** 2026-07-11T09:50:48+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dhtnode (cli)
- dhtnode (别名)

## 依赖

- argon2
- asio
- fmt
- gnutls
- msgpack-cxx
- nettle
- readline

## 构建依赖

- cmake
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.7.1
- 管理器更新时间: 2026-07-11
- 本地数据: OK
- 上游仓库: https://github.com/savoirfairelinux/opendht
- 检测到的最新版本: v3.7.1 (当前)
## 项目历史与用法

OpenDHT is Savoir-faire Linux's C++17 distributed hash table implementation. It provides a peer-to-peer, redundant key-value store where nodes can publish and retrieve values without a central database server.

### 项目历史

The public repository describes OpenDHT as a lightweight C++17 DHT and exposes it as both a library and the `dhtnode` executable. Its design centers on an easy-to-use distributed in-memory store, with values spread across participating network nodes.

### 采用历史

The clearest production adoption path is Jami, Savoir-faire Linux's peer-to-peer communication system. Jami documentation says OpenDHT provides the distributed key-value datastore used for connectivity establishment with ICE and for message distribution.

### 使用方式

Developers use OpenDHT when they need peer discovery, rendezvous, or small distributed records in a decentralized network. Operators can run `dhtnode` instances as bootstrap or participating nodes, while applications link the library for read/write access to the DHT.

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

OpenDHT is a useful package to track because it packages a real distributed-systems primitive as a reusable C++ library rather than burying it inside a single application. The same codebase serving both Jami infrastructure and generic package managers makes dependency, ABI, and bootstrap-node behavior visible to downstream packagers.

### Related projects

- DHTNet is a later Savoir-faire Linux C++17 networking library spun off from the Jami project; it complements OpenDHT by focusing on peer-to-peer connection establishment rather than the DHT store itself.

### 来源

- <https://blog.savoirfairelinux.com/en-ca/s/opendht/>
- <https://docs.jami.net/en_US/user/jami-distributed-network.html>
- <https://formulae.brew.sh/formula/opendht>
- <https://github.com/savoirfairelinux/opendht>


## 安全说明

没有找到 opendht 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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

## 其他软件包管理器记录

- Nix - opendht: normalized package name match | nixpkgs package indexes: pkgs/by-name/op/opendht/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dhtnode - 3.0.1-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: dhtnode from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OpenDHT node binary | https://github.com/savoirfairelinux/opendht
- Ubuntu apt - libopendht-c-dev - 3.0.1-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libopendht-c-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for the libopendht-c library | https://github.com/savoirfairelinux/opendht
- Ubuntu apt - libopendht-c3t64 - 3.0.1-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libopendht-c3t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lightweight C++17 distributed hash table implementation - C wrapper | https://github.com/savoirfairelinux/opendht
- Ubuntu apt - libopendht-dev - 3.0.1-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libopendht-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for the libopendht library | https://github.com/savoirfairelinux/opendht
- Ubuntu apt - libopendht3t64 - 3.0.1-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libopendht3t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Lightweight C++17 distributed hash table implementation | https://github.com/savoirfairelinux/opendht
- Ubuntu apt - opendht-tools - 3.0.1-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: opendht-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Collection of OpenDHT utility tools | https://github.com/savoirfairelinux/opendht
- Ubuntu apt - python3-opendht - 3.0.1-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-opendht from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python 3 bindings for libopendht C++ library | https://github.com/savoirfairelinux/opendht
- apk - opendht - 4.0.4-r0: normalized package name match | Alpine Linux edge package indexes: opendht from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | C++17 Distributed Hash Table implementation | https://github.com/savoirfairelinux/opendht
- apk - opendht-dev - 4.0.4-r0: normalized package name match | Alpine Linux edge package indexes: opendht-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | C++17 Distributed Hash Table implementation (development files) | https://github.com/savoirfairelinux/opendht
- apk - opendht-doc - 4.0.4-r0: normalized package name match | Alpine Linux edge package indexes: opendht-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | C++17 Distributed Hash Table implementation (documentation) | https://github.com/savoirfairelinux/opendht
- apk - opendht-libs - 4.0.4-r0: normalized package name match | Alpine Linux edge package indexes: opendht-libs from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | C++17 Distributed Hash Table implementation (libraries) | https://github.com/savoirfairelinux/opendht
- apk - py3-opendht - 4.0.4-r0: normalized package name match | Alpine Linux edge package indexes: py3-opendht from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | C++17 Distributed Hash Table implementation (python bindings) | https://github.com/savoirfairelinux/opendht
- apk - py3-opendht-pyc - 4.0.4-r0: normalized package name match | Alpine Linux edge package indexes: py3-opendht-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for py3-opendht | https://github.com/savoirfairelinux/opendht
- pacman - opendht - 1:4.2.1-1: normalized package name match | Arch Linux sync databases: opendht from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | C++17 Distributed Hash Table (DHT) implementation | https://github.com/savoirfairelinux/opendht


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Runtime dependency declared by Homebrew.
- [nettle](https://pkg.so/zh-hans/brew/nettle/) - Runtime dependency declared by Homebrew.
- [argon2](https://pkg.so/zh-hans/brew/argon2/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [xmlrpc-c](https://pkg.so/zh-hans/brew/xmlrpc-c/) - Shares pkgdb curated category or tags: c-plus-plus, cli, networking.
- [proxygen](https://pkg.so/zh-hans/brew/proxygen/) - Shares pkgdb curated category or tags: c-plus-plus, cli, networking.
- [inspircd](https://pkg.so/zh-hans/brew/inspircd/) - Shares pkgdb curated category or tags: c-plus-plus, cli, networking.
- [veilid](https://pkg.so/zh-hans/brew/veilid/) - Shares pkgdb curated category or tags: cli, distributed-systems, networking.
- [gloox](https://pkg.so/zh-hans/brew/gloox/) - Shares pkgdb curated category or tags: c-plus-plus, cli, networking.
- [c-ares](https://pkg.so/zh-hans/brew/c-ares/) - Shares pkgdb curated category or tags: cli, networking.
- [unbound](https://pkg.so/zh-hans/brew/unbound/) - Shares pkgdb curated category or tags: cli, networking.
- [telnet](https://pkg.so/zh-hans/brew/telnet/) - Shares pkgdb curated category or tags: cli, networking.
- [freediameter](https://pkg.so/zh-hans/brew/freediameter/) - Local package facts share a topical domain. Shared terms: cli, gnutls, implementation, networking.
- [civetweb](https://pkg.so/zh-hans/brew/civetweb/) - Local package facts share a topical domain. Shared terms: c-plus-plus, cli, networking, plus.

## Combined YAML source

View the package source record on GitHub. [combined/opendht.yml](https://github.com/mxcl/pkgdb/blob/main/combined/opendht.yml)


## 来源

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