# 使用 Homebrew, MacPorts, pacman, apt 安装 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

- 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

- 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

## 软件包事实

- **软件包键:** brew:libgfshare
- **软件包管理器:** Homebrew
- **版本:** 2.0.0
- **来源摘要:** Library for sharing secrets
- **主页:** <https://github.com/kinnison/libgfshare>
- **仓库:** <https://github.com/kinnison/libgfshare>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.0.0
## 项目历史与用法

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

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

- 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


## Combined YAML source

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


## 来源

- 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
