# 使用 Homebrew, apt, MacPorts, pacman 安装 libgfshare

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

## 安装

```sh
sudo av install brew:libgfshare
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libgfshare
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libgfshare
```

  证据: MacPorts ports tree: security/libgfshare/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install libgfshare-bin
```

  证据: Debian stable package indexes: libgfshare-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- pacman (92%):

```sh
sudo pacman -S libgfshare
```

  证据: Arch Linux sync databases: libgfshare from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:libgfshare
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libgfshare>
- **版本:** 2.0.0
- **来源摘要:** Library for sharing secrets
- **主页:** <https://github.com/kinnison/libgfshare>
- **仓库:** <https://github.com/kinnison/libgfshare>
- **上游文档:** <https://github.com/kinnison/libgfshare#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/kinnison/libgfshare/archive/refs/tags/2.0.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- gfcombine (cli)
- gfsplit (cli)
- gfcombine (别名)
- gfsplit (别名)

## 构建依赖

- autoconf
- automake
- libtool

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.0.0
- 本地数据: OK
- 上游仓库: https://github.com/kinnison/libgfshare
- 检测到的最新版本: 2.0.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

libgfshare is a compact C implementation of Shamir secret sharing over GF(2^8), with gfsplit and gfcombine tools for splitting and recombining byte-oriented secrets.

### 项目历史

The upstream README is signed by Daniel Silverstone on 2006-01-15 and describes the library as a Shamir Secret Sharing implementation in the Galois Field 2^8. It explicitly credits inspiration from Mark D. Wooding's Catacomb library.

A 2009-11-18 README note by Simon McVittie documents recovery behavior for earlier gfsplit outputs that could produce a share numbered 000, giving the project a small but concrete maintenance history.

### 采用历史

libgfshare stayed niche but useful: package managers expose it for users who want a small secret-sharing library and command-line tools without a larger key-management suite. Its own README gives rare-use GPG secret keys, such as archive-signing keys, as a motivating example.

### 使用方式

The library splits a secret into C shares such that any T shares can recover it. The CLI tools make that model usable from shell scripts or operational key-handling procedures.

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

For package nerds, libgfshare is the tiny Unix-security-tool version of an important cryptographic idea: no service, no database, just a C library and two tools. Its significance is mostly in simplicity and auditability rather than broad adoption.

### 时间线

- 2006: Daniel Silverstone README note describes the initial library and its GF(2^8) Shamir-sharing design.
- 2009: Simon McVittie README note documents recovery from earlier gfsplit share-numbering behavior.
- 2026: GitHub repository metadata listed 80 commits and one tag.

### Related projects

- Shamir secret sharing is the underlying scheme. Mark D. Wooding's Catacomb library is named by the upstream README as an inspiration. GnuPG key-handling is a documented use case.

### 来源

- <https://formulae.brew.sh/formula/libgfshare>
- <https://github.com/kinnison/libgfshare>
- <https://raw.githubusercontent.com/kinnison/libgfshare/master/README>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libgfshare
- **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

## 其他软件包管理器记录

- Debian apt - libgfshare-bin - 2.0.0-7: normalized package name match | Debian stable package indexes: libgfshare-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utilities for multi-way secret-sharing | https://github.com/kinnison/libgfshare
- Debian apt - libgfshare-dev - 2.0.0-7: normalized package name match | Debian stable package indexes: libgfshare-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for multi-way secret-sharing (headers) | https://github.com/kinnison/libgfshare
- Debian apt - libgfshare2 - 2.0.0-7: normalized package name match | Debian stable package indexes: libgfshare2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for multi-way secret-sharing | https://github.com/kinnison/libgfshare
- Ubuntu apt - libgfshare-bin - 2.0.0-6build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgfshare-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utilities for multi-way secret-sharing | https://git.gitano.org.uk/libgfshare.git/
- Ubuntu apt - libgfshare-dev - 2.0.0-6build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgfshare-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for multi-way secret-sharing (headers) | https://git.gitano.org.uk/libgfshare.git/
- Ubuntu apt - libgfshare2 - 2.0.0-6build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgfshare2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for multi-way secret-sharing | https://git.gitano.org.uk/libgfshare.git/
- pacman - libgfshare - 2.0.0-5: normalized package name match | Arch Linux sync databases: libgfshare from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Utilities for multi-way secret-sharing | https://www.digital-scurf.org/software/libgfshare
- MacPorts - libgfshare: normalized package name match | MacPorts ports tree: security/libgfshare/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/zh-hans/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [autoconf](https://www.automicvault.com/zh-hans/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/zh-hans/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/zh-hans/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [ots](https://www.automicvault.com/zh-hans/pkg/brew/ots/) - Shares av.db curated category or tags: cli, secret-sharing, security.
- [sss-cli](https://www.automicvault.com/zh-hans/pkg/brew/sss-cli/) - Shares av.db curated category or tags: cli, cryptography, secret-sharing, security, shamir-secret-sharing.
- [ssss](https://www.automicvault.com/zh-hans/pkg/brew/ssss/) - Shares av.db curated category or tags: cli, cryptography, secret-sharing, security, shamir-secret-sharing.
- [libjwt](https://www.automicvault.com/zh-hans/pkg/brew/libjwt/) - Shares av.db curated category or tags: c-library, cli, cryptography, security.
- [mbedtls](https://www.automicvault.com/zh-hans/pkg/brew/mbedtls/) - Shares av.db curated category or tags: c-library, cli, cryptography, security.
- [nettle](https://www.automicvault.com/zh-hans/pkg/brew/nettle/) - Shares av.db curated category or tags: c-library, cli, cryptography, security.
- [argon2](https://www.automicvault.com/zh-hans/pkg/brew/argon2/) - Shares av.db curated category or tags: cli, cryptography, security.
- [badkeys](https://www.automicvault.com/zh-hans/pkg/brew/badkeys/) - Shares av.db curated category or tags: cli, cryptography, security.
- [credstash](https://www.automicvault.com/zh-hans/pkg/brew/credstash/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, cryptography, secrets, security.

## Combined YAML source

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


## 来源

- 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
