Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, winget 安装 gperf

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gperf

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install gperf

MacPorts ports tree · devel/gperf/Portfile · 来源: api.github.com

Linux

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

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

Debian apt已验证 · 92%
sudo apt install gperf

Debian stable package indexes · gperf · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install gperf

Fedora Rawhide package metadata · gperf · 来源: dl.fedoraproject.org

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

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

Arch Linux pacman已验证 · 92%
sudo pacman -S gperf

Arch Linux sync databases · gperf · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install gperf

openSUSE Tumbleweed package metadata · gperf · 来源: download.opensuse.org

概览

软件包摘要

Perfect hash function generator

命令和别名

  • gperf

历史

项目历史与用法

GNU gperf is the GNU perfect hash function generator: it reads a static set of keywords and emits C or C++ lookup code designed for collision-free recognition with one string comparison.

项目历史

The GNU manual says the gperf utility was written in GNU C++ by Douglas C. Schmidt, with the general idea inspired by Keith Bostic's C algorithm distributed to net.sources around 1984. The manual frames the GNU program as a heavily modified, enhanced, and extended implementation created at the University of California, Irvine.

gperf belongs to the classic Unix compiler-tool family. Its input format resembles tools such as lex in using declarations and `%%` separators, while its output is ordinary C or C++ source that can be checked into or generated during builds.

采用历史

GNU documents gperf as useful for static search sets such as compiler reserved words, assembler instruction opcodes, and shell built-ins. That made it attractive in source-based packaging ecosystems because generated lookup tables can be fast, deterministic, and dependency-light.

The GNU project page distributes gperf through the GNU FTP mirror network and points development to the Savannah project, placing it in the same distribution pattern as many older GNU build-time utilities. Homebrew, Debian, Ubuntu, Fedora, Arch, Nix, MacPorts, Chocolatey, and other package systems carry packages for it in the input metadata, reflecting its role as a small but widely available build dependency.

使用方式

A user supplies a keyword file, optionally including struct declarations and gperf declarations, and gperf writes generated lookup code. The GNU page describes options for C or C++ output, switch statements or nested if statements instead of a hash table, and algorithm tuning.

Typical use is not interactive end-user work but build-time code generation. Projects use it when a fixed vocabulary needs fast membership tests without maintaining handwritten hash tables.

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

Package maintainers care about gperf because it often appears as a small build requirement that is easy to miss when bootstrapping language runtimes, compilers, and parser-heavy tools. It is old, tiny, and boring in the good way: a generated C file is easier to ship than a runtime dependency.

It also illustrates a packaging distinction between generated artifacts and generators. Some upstreams ship generated source, while others require gperf at build time, so package recipes need to know whether gperf is a native build tool or merely an optional maintainer tool.

时间线

  • 1984: Keith Bostic's C perfect-hash algorithm circulated on net.sources, later cited by the GNU manual as an inspiration.
  • Late 1980s: Douglas C. Schmidt developed the GNU C++ implementation at the University of California, Irvine.
  • 1998-2025: The GNU project page records long-running FSF maintenance of the gperf web page and GNU mirror distribution.
  • 3.x series: gperf continued as a GPL-3-or-later GNU utility with C and C++ code-generation support documented in the GNU manual.

Related projects

  • Related GNU and Unix build tools include flex, bison, GNU indent, compiler front ends, and parser or lexer generators that also turn compact declarative inputs into C-family source.
  • The manual specifically discusses static sets such as C reserved words, assembler opcodes, and shell built-ins as natural problem domains for gperf.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://www.gnu.org/software/gperf/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://www.gnu.org/software/gperf/none 置信度

安装元数据

软件包元数据

软件包键brew:gperf
版本3.3
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gperf
主页https://www.gnu.org/software/gperf/
仓库https://git.savannah.gnu.org/cgit/gperf.git
上游文档https://www.gnu.org/software/gperf
许可证GPL-3.0-or-later
源码归档https://ftpmirror.gnu.org/gnu/gperf/gperf-3.3.tar.gz
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

gperf 3.2.1-1

Perfect hash function generator

http://www.gnu.org/software/gperf/

sudo apt install gperf
  • Section: devel
  • Architecture: amd64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Gperf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gperf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

gperf

nix profile install nixpkgs#gperf
  • normalized package name match
  • 匹配方式:Gperf
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gp/gperf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

gperf 3.1-1build1

Perfect hash function generator

http://www.gnu.org/software/gperf/

sudo apt install gperf
  • Section: universe/devel
  • Architecture: amd64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Gperf
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gperf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

gperf 3.3-r0

Perfect hash function generator.

https://www.gnu.org/software/gperf/

sudo apk add gperf
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: gperf
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gperf
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gperf from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

gperf-doc 3.3-r0

Perfect hash function generator. (documentation)

https://www.gnu.org/software/gperf/

sudo apk add gperf-doc
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: gperf
  • normalized package name match
  • 匹配方式:Gperf
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gperf-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

gperf 3.2.1-3.fc44

A perfect hash function generator

http://www.gnu.org/software/gperf/

sudo dnf install gperf
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gperf
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gperf
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gperf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

gperf 3.3-2

Perfect hash function generator

https://www.gnu.org/software/gperf/

sudo pacman -S gperf
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Gperf
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: gperf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

gperf 3.3-1.3

A Compiler Tool for Generating Perfect Hash Functions

https://gnu.org/software/gperf/

sudo zypper install gperf
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: gperf
  • 4 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gperf
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gperf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

gperf

sudo port install gperf
  • normalized package name match
  • 匹配方式:Gperf
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/gperf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

gperf

choco install gperf
  • normalized package name match
  • 匹配方式:Gperf
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: gperf from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','glab'
winget95%

oss-winget.gperf

winget install --id oss-winget.gperf -e
  • normalized package name match
  • 匹配方式:Gperf
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: oss-winget.gperf from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

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