Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, MacPorts, Nix 安装 libcmph

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install libcmph

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install cmph

MacPorts ports tree · textproc/cmph/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add libcmph

Alpine Linux edge package indexes · libcmph · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install libcmph-dev

Debian stable package indexes · libcmph-dev · 来源: deb.debian.org

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

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

概览

软件包摘要

C minimal perfect hashing library

命令和别名

  • cmph

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

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

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.

时间线

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

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 13 个平台目标。

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-08
管理器版本2.0.2
管理器更新时间2026-06-19
本地数据OK
上游not checked
检测到的最新版本未检测到

https://cmph.sourceforge.net/

安装元数据

软件包元数据

软件包键brew:libcmph
版本2.0.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/libcmph
主页https://cmph.sourceforge.net/
仓库https://sourceforge.net/p/cmph/git
上游文档https://cmph.sourceforge.net/
许可证LGPL-2.1-only OR MPL-1.1
源码归档https://downloads.sourceforge.net/project/cmph/v2.0.2/cmph-2.0.2.tar.gz
最后更新2026-06-19T12:31:49-07:00
Pulseupdated
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

apk95%

libcmph 2.0.2-r6

A minimal perfect hash C library

https://cmph.sourceforge.net/

sudo apk add libcmph
  • License: LGPL-2.0-or-later AND MPL-1.1
  • Architecture: x86_64
  • Source Package: cmph
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Libcmph
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libcmph from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
MacPorts94%

cmph

sudo port install cmph
  • installed executable or alias match
  • 匹配方式:Cmph
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/cmph/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Debian apt92%

libcmph-dev 2.0.2-3.1

C Minimal Perfect Hashing Library development files

http://cmph.sourceforge.net

sudo apt install libcmph-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: cmph
  • 1 依赖
  • installed executable or alias match
  • 匹配方式:Cmph
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcmph-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt92%

libcmph-tools 2.0.2-3.1

C Minimal Perfect Hashing Library command line utilities

http://cmph.sourceforge.net

sudo apt install libcmph-tools
  • Section: utils
  • Architecture: amd64
  • Source Package: cmph
  • 2 依赖
  • installed executable or alias match
  • 匹配方式:Cmph
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcmph-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt92%

libcmph0t64 2.0.2-3.1

C Minimal Perfect Hashing Library

http://cmph.sourceforge.net

sudo apt install libcmph0t64
  • Section: libs
  • Architecture: amd64
  • Source Package: cmph
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Cmph
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcmph0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix92%

cmph

nix profile install nixpkgs#cmph
  • installed executable or alias match
  • 匹配方式:Cmph
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/cm/cmph/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt92%

libcmph-dev 2.0.2-3.1build1

C Minimal Perfect Hashing Library development files

http://cmph.sourceforge.net

sudo apt install libcmph-dev
  • Section: universe/interpreters
  • Architecture: amd64
  • Source Package: cmph
  • 1 依赖
  • installed executable or alias match
  • 匹配方式:Cmph
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcmph-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt92%

libcmph-tools 2.0.2-3.1build1

C Minimal Perfect Hashing Library command line utilities

http://cmph.sourceforge.net

sudo apt install libcmph-tools
  • Section: universe/utils
  • Architecture: amd64
  • Source Package: cmph
  • 2 依赖
  • installed executable or alias match
  • 匹配方式:Cmph
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcmph-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt92%

libcmph0t64 2.0.2-3.1build1

C Minimal Perfect Hashing Library

http://cmph.sourceforge.net

sudo apt install libcmph0t64
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: cmph
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Cmph
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcmph0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk92%

cmph 2.0.2-r6

A minimal hash C library - utility application

https://cmph.sourceforge.net/

sudo apk add cmph
  • License: LGPL-2.0-or-later AND MPL-1.1
  • Architecture: x86_64
  • Source Package: cmph
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Cmph
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cmph from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

cmph-dev 2.0.2-r6

A minimal hash C library - utility application (development files)

https://cmph.sourceforge.net/

sudo apk add cmph-dev
  • License: LGPL-2.0-or-later AND MPL-1.1
  • Architecture: x86_64
  • Source Package: cmph
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Cmph
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cmph-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

cmph-doc 2.0.2-r6

A minimal hash C library - utility application (documentation)

https://cmph.sourceforge.net/

sudo apk add cmph-doc
  • License: LGPL-2.0-or-later AND MPL-1.1
  • Architecture: x86_64
  • Source Package: cmph
  • installed executable or alias match
  • 匹配方式:Cmph
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cmph-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

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