# Install opendht with Homebrew, apk, Nix, pacman, apt

C++17 Distributed Hash Table implementation. Version 3.7.1 via Homebrew; verified 2026-07-11. Also installable with nix: nix profile install nixpkgs#opendht.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install opendht
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add opendht
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:opendht
- **Package manager:** Homebrew
- **Version:** 3.7.1
- **Source summary:** C++17 Distributed Hash Table implementation
- **Homepage:** <https://github.com/savoirfairelinux/opendht>
- **Repository:** <https://github.com/savoirfairelinux/opendht>
- **Last updated:** 2026-07-11T09:50:48+09:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- dhtnode (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 3.7.1
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Sources

- <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>


## Security Notes

No matching local secret-handling manifest was found for opendht. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Other Package-Manager Records

- 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


## Combined YAML source

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


## Sources

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