# libcmph mit Homebrew, apk, MacPorts, Nix, apt installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für libcmph in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:libcmph
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install libcmph
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cmph
```

  Evidenz: MacPorts ports tree: textproc/cmph/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libcmph
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#cmph
```

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

- Debian apt (92%):

```sh
sudo apt install libcmph-dev
```

  Evidenz: Debian stable package indexes: libcmph-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## Paketfakten

- **Paketschlüssel:** brew:libcmph
- **Paketmanager:** Homebrew
- **Version:** 2.0.2
- **Quellzusammenfassung:** C minimal perfect hashing library
- **Homepage:** <https://cmph.sourceforge.net/>
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- cmph (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 2.0.2
## Projektgeschichte und Nutzung

CMPH is a C library and command-line tool for building minimal perfect hash functions. It targets static key sets where compact storage and collision-free lookup matter more than insertion or deletion.

### Projektgeschichte

The CMPH site frames the project around a gap in free software support for minimal perfect hashing, distinguishing it from GNU gperf by emphasizing very large key sets rather than small generated perfect-hash functions. Its documentation collects several algorithms, including CHD, BDZ, BMZ, BRZ, CHM, and FCH.

By the 1.x and 2.x news entries, CMPH had grown beyond a single algorithm implementation into a practical library with packed-function support, memory-mappable output, an external-memory BRZ path for very large sets, and an experimental C++ interface for map-like use cases.

### Adoptionsgeschichte

CMPH has remained a niche but durable package because minimal perfect hashes are a specialized data-structure tool. It appears in Homebrew, Debian and Ubuntu development packages, MacPorts, Nix, Alpine, and other package collections for developers who need static dictionary or key-index construction.

### Wie es verwendet wird

Typical usage is offline construction of a hash function from a fixed key set, followed by storage or embedding of the generated function. The official examples show the C API creating a minimal perfect hash from an in-memory vector and dumping it to a file.

### Warum Paket-Nerds sich dafür interessieren

CMPH is the kind of package that matters disproportionately to systems and search developers: it packages academic minimal-perfect-hashing algorithms into a reusable C interface and a small CLI. Its appeal is that it turns a static corpus into dense one-probe lookup tables without hauling in a database.

### Zeitleiste

- 0.9: CHD and CHD_PH support highlighted for compact internal-memory minimal perfect hashes.
- 1.0: Bugfix-only release before a planned revamp of code and algorithms.
- 1.1: CHD_PC bug fix and test reorganization.
- 2.0: Warning cleanup and experimental C++ mph_map and mph_index interface.

### Related projects

- Related projects and concepts include GNU gperf, static hash tables, CHD, BDZ, BMZ, BRZ, CHM, and FCH minimal-perfect-hashing algorithms.

### Quellen

- <https://cmph.sourceforge.net/>
- <https://cmph.sourceforge.net/concepts.html>
- <https://formulae.brew.sh/formula/libcmph>
- <https://sourceforge.net/p/cmph/git>


## Sicherheitshinweise

library-like package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- library-like package without higher-risk signals

## Andere Paketmanager-Einträge

- apk - libcmph - 2.0.2-r6: normalized package name match | Alpine Linux edge package indexes: libcmph from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A minimal perfect hash C library | https://cmph.sourceforge.net/
- MacPorts - cmph: installed executable or alias match | MacPorts ports tree: textproc/cmph/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - libcmph-dev - 2.0.2-3.1: installed executable or alias match | Debian stable package indexes: libcmph-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C Minimal Perfect Hashing Library development files | http://cmph.sourceforge.net
- Debian apt - libcmph-tools - 2.0.2-3.1: installed executable or alias match | Debian stable package indexes: libcmph-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C Minimal Perfect Hashing Library command line utilities | http://cmph.sourceforge.net
- Debian apt - libcmph0t64 - 2.0.2-3.1: installed executable or alias match | Debian stable package indexes: libcmph0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C Minimal Perfect Hashing Library | http://cmph.sourceforge.net
- Nix - cmph: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/cm/cmph/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libcmph-dev - 2.0.2-3.1build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libcmph-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C Minimal Perfect Hashing Library development files | http://cmph.sourceforge.net
- Ubuntu apt - libcmph-tools - 2.0.2-3.1build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libcmph-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C Minimal Perfect Hashing Library command line utilities | http://cmph.sourceforge.net
- Ubuntu apt - libcmph0t64 - 2.0.2-3.1build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libcmph0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C Minimal Perfect Hashing Library | http://cmph.sourceforge.net
- apk - cmph - 2.0.2-r6: installed executable or alias match | Alpine Linux edge package indexes: cmph from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A minimal hash C library - utility application | https://cmph.sourceforge.net/
- apk - cmph-dev - 2.0.2-r6: installed executable or alias match | Alpine Linux edge package indexes: cmph-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A minimal hash C library - utility application (development files) | https://cmph.sourceforge.net/
- apk - cmph-doc - 2.0.2-r6: installed executable or alias match | Alpine Linux edge package indexes: cmph-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A minimal hash C library - utility application (documentation) | https://cmph.sourceforge.net/


## Combined YAML source

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


## Quellen

- 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
