# libcmph mit Homebrew, apk, apt, MacPorts, Nix 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

- 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

- 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

## Paketfakten

- **Paketschlüssel:** brew:libcmph
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/libcmph>
- **Version:** 2.0.2
- **Quellzusammenfassung:** C minimal perfect hashing library
- **Homepage:** <https://cmph.sourceforge.net/>
- **Repository:** <https://sourceforge.net/p/cmph/git>
- **Upstream-Dokumentation:** <https://cmph.sourceforge.net/>
- **Lizenz:** LGPL-2.1-only OR MPL-1.1
- **Quellarchiv:** <https://downloads.sourceforge.net/project/cmph/v2.0.2/cmph-2.0.2.tar.gz>
- **Zuletzt aktualisiert:** 2026-06-19T12:31:49-07:00
- **Generiert:** 2026-07-08T07:18:31+00:00

## Executables

- cmph (cli)
- cmph (Alias)

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Version und Aktualität

- Seite generiert: 2026-07-08
- Manager-Version: 2.0.2
- Manager aktualisiert: 2026-06-19
- lokale Daten: OK
- Upstream-Repository: https://cmph.sourceforge.net/
- Info: Release/tag comparison is only available for GitHub repositories.
## 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

## Details aus der Quelldatenbank

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

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


## Verwandte Links

- [Terminal utility packages](https://www.automicvault.com/de/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/de/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/de/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/de/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [flickcurl](https://www.automicvault.com/de/pkg/brew/flickcurl/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [glib](https://www.automicvault.com/de/pkg/brew/glib/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [gwenhywfar](https://www.automicvault.com/de/pkg/brew/gwenhywfar/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [hidapi](https://www.automicvault.com/de/pkg/brew/hidapi/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [json-glib](https://www.automicvault.com/de/pkg/brew/json-glib/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [libdatrie](https://www.automicvault.com/de/pkg/brew/libdatrie/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [libdeflate](https://www.automicvault.com/de/pkg/brew/libdeflate/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [nspr](https://www.automicvault.com/de/pkg/brew/nspr/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [wv2](https://www.automicvault.com/de/pkg/brew/wv2/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, libraries, library.

## Combined YAML source

View the package source record on GitHub. [combined/libcmph.yml](https://github.com/automic-vault/db/blob/main/combined/libcmph.yml)


## Quellen

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