# 使用 Homebrew, apk, dnf, Nix, pacman, apt, zypper 安装 libpinyin

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

## 安装

```sh
sudo av install brew:libpinyin
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libpinyin
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libpinyin
```

  证据: Alpine Linux edge package indexes: libpinyin from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libpinyin
```

  证据: Fedora Rawhide package metadata: libpinyin from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libpinyin
```

  证据: nixpkgs package indexes: pkgs/by-name/li/libpinyin/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S libpinyin
```

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

- Debian apt (92%):

```sh
sudo apt install libpinyin-common-dev
```

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

- zypper (92%):

```sh
sudo zypper install libpinyin-data
```

  证据: openSUSE Tumbleweed package metadata: libpinyin-data from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:libpinyin
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libpinyin>
- **版本:** 2.10.3
- **来源摘要:** Library to deal with pinyin
- **主页:** <https://github.com/libpinyin/libpinyin>
- **仓库:** <https://github.com/libpinyin/libpinyin>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/libpinyin/libpinyin/archive/refs/tags/2.10.3.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gen_binary_files (cli)
- gen_unigram (cli)
- import_interpolation (cli)
- gen_binary_files (别名)
- gen_unigram (别名)
- import_interpolation (别名)

## 依赖

- berkeley-db
- gettext
- glib

## 构建依赖

- autoconf
- automake
- libtool
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- 注意事项: The formula will switch DBM to Tkrzw in version 2.12 which may impact user data.
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

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

libpinyin is a library for intelligent sentence-based Chinese pinyin input methods. Its upstream README presents it as the algorithmic core that other input-method frontends can build on.

### 项目历史

The project lives in the libpinyin GitHub organization and focuses on pinyin processing rather than on a standalone user interface. The repository's public description and README are intentionally short: a library to deal with pinyin and to provide algorithms for sentence-based Chinese input methods.

### 采用历史

Its clearest downstream adoption path is ibus-libpinyin, an IBus engine that provides Chinese Pinyin and ZhuYin input methods based on libpinyin. That split is important for packaging because distributions can package the reusable language engine separately from desktop input-method integration.

### 使用方式

Package users usually encounter libpinyin indirectly through desktop input methods. Developers and packagers see its helper programs, including tools for generating binary pinyin data and importing model data.

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

libpinyin is package-nerd interesting because it is language input infrastructure: small, data-driven, and usually invisible until an input method depends on it. It separates Chinese pinyin algorithms from the IBus frontend.

### 时间线

- 2013: The ibus-libpinyin wiki history shows documented feature work around fuzzy pinyin and correction support.
- 2023: The ibus-libpinyin feature page was updated with pinyin correction, fuzzy pinyin, and ZhuYin-related input behavior.

### Related projects

- ibus-libpinyin is the main related frontend, providing an IBus Chinese Pinyin and ZhuYin input method based on libpinyin.
- IBus is the input-method framework that makes the libpinyin engine available in many Linux desktop sessions.

### 来源

- <https://github.com/libpinyin/ibus-libpinyin>
- <https://github.com/libpinyin/ibus-libpinyin/wiki/ibus-libpinyin-features>
- <https://github.com/libpinyin/libpinyin>
- <https://raw.githubusercontent.com/libpinyin/ibus-libpinyin/main/README>
- <https://raw.githubusercontent.com/libpinyin/libpinyin/main/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:** libpinyin
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - libpinyin-common-dev - 2.8.1-1: normalized package name match | Debian stable package indexes: libpinyin-common-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to deal with PinYin / zhuyin - common development files | https://github.com/libpinyin/libpinyin
- Debian apt - libpinyin-data - 2.8.1-1+b2: normalized package name match | Debian stable package indexes: libpinyin-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Data for PinYin / zhuyin input method library | https://github.com/libpinyin/libpinyin
- Debian apt - libpinyin-utils - 2.8.1-1+b2: normalized package name match | Debian stable package indexes: libpinyin-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to deal with PinYin - utilities | https://github.com/libpinyin/libpinyin
- Debian apt - libpinyin15 - 2.8.1-1+b2: normalized package name match | Debian stable package indexes: libpinyin15 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to deal with PinYin | https://github.com/libpinyin/libpinyin
- Debian apt - libpinyin15-dev - 2.8.1-1+b2: normalized package name match | Debian stable package indexes: libpinyin15-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to deal with PinYin - development files | https://github.com/libpinyin/libpinyin
- Debian apt - libzhuyin-dev - 2.8.1-1+b2: normalized package name match | Debian stable package indexes: libzhuyin-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for zhuyin input method library | https://github.com/libpinyin/libpinyin
- Debian apt - libzhuyin15 - 2.8.1-1+b2: normalized package name match | Debian stable package indexes: libzhuyin15 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Zhuyin input method library | https://github.com/libpinyin/libpinyin
- Nix - libpinyin: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libpinyin/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libpinyin-common-dev - 2.8.1-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libpinyin-common-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library to deal with PinYin / zhuyin - common development files | https://github.com/libpinyin/libpinyin
- Ubuntu apt - libpinyin-data - 2.8.1-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libpinyin-data from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Data for PinYin / zhuyin input method library | https://github.com/libpinyin/libpinyin
- Ubuntu apt - libpinyin-utils - 2.8.1-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libpinyin-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library to deal with PinYin - utilities | https://github.com/libpinyin/libpinyin
- Ubuntu apt - libpinyin15 - 2.8.1-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libpinyin15 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library to deal with PinYin | https://github.com/libpinyin/libpinyin
- Ubuntu apt - libpinyin15-dev - 2.8.1-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libpinyin15-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library to deal with PinYin - development files | https://github.com/libpinyin/libpinyin
- Ubuntu apt - libzhuyin-dev - 2.8.1-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libzhuyin-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for zhuyin input method library | https://github.com/libpinyin/libpinyin
- Ubuntu apt - libzhuyin15 - 2.8.1-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libzhuyin15 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Zhuyin input method library | https://github.com/libpinyin/libpinyin
- apk - libpinyin - 2.11.91-r0: normalized package name match | Alpine Linux edge package indexes: libpinyin from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library to deal with pinyin | https://github.com/libpinyin/libpinyin


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Runtime dependency declared by Homebrew.
- [berkeley-db](https://pkg.so/zh-hans/brew/berkeley-db/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [mawk](https://pkg.so/zh-hans/brew/mawk/) - Shares pkgdb curated category or tags: cli, language-runtime, text-processing.
- [objfw](https://pkg.so/zh-hans/brew/objfw/) - Shares pkgdb curated category or tags: cli, language-runtime, library.
- [txr](https://pkg.so/zh-hans/brew/txr/) - Shares pkgdb curated category or tags: cli, language-runtime, text-processing.
- [node](https://pkg.so/zh-hans/brew/node/) - Shares pkgdb curated category or tags: cli, language-runtime.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Shares pkgdb curated category or tags: cli, language-runtime.
- [python@3.13](https://pkg.so/zh-hans/brew/python-3-13/) - Shares pkgdb curated category or tags: cli, language-runtime.
- [go](https://pkg.so/zh-hans/brew/go/) - Shares pkgdb curated category or tags: cli, language-runtime.
- [gcc](https://pkg.so/zh-hans/brew/gcc/) - Shares pkgdb curated category or tags: cli, language-runtime.
- [plenv](https://pkg.so/zh-hans/brew/plenv/) - Local package facts share a topical domain. Shared terms: binary, cli, language, language-runtime, runtime.
- [elm](https://pkg.so/zh-hans/npm/elm/) - Local package facts share a topical domain. Shared terms: binary, cli, language, language-runtime, runtime.

## Combined YAML source

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


## 来源

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