Automic VaultAutomic Vault

brew

Install libpinyin with Homebrew, apk, apt, dnf, Nix, pacman, zypper

Library to deal with pinyin. Version 2.10.3 via Homebrew; verified 2026-04-18.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install libpinyin

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add libpinyin

Alpine Linux edge package indexes · libpinyin · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install libpinyin-common-dev

Debian stable package indexes · libpinyin-common-dev · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install libpinyin

Fedora Rawhide package metadata · libpinyin · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#libpinyin

nixpkgs package indexes · pkgs/by-name/li/libpinyin/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S libpinyin

Arch Linux sync databases · libpinyin · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install libpinyin-data

openSUSE Tumbleweed package metadata · libpinyin-data · source: download.opensuse.org

overview

Package summary

Library to deal with pinyin

Commands and aliases

  • gen_binary_files
  • gen_unigram
  • import_interpolation

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 3 runtime dependencies.
  • Build metadata lists 4 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
gen_binary_filescliglobal executable
gen_unigramcliglobal executable
import_interpolationcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.10.3
manager updated2026-04-18
local dataok
upstreamcurrent
latest detected2.10.3

https://github.com/libpinyin/libpinyin

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:libpinyin
Version2.10.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/libpinyin
Homepagehttps://github.com/libpinyin/libpinyin
Repositoryhttps://github.com/libpinyin/libpinyin
Upstream docshttps://github.com/libpinyin/libpinyin#readme
LicenseGPL-3.0-or-later
Source archivehttps://github.com/libpinyin/libpinyin/archive/refs/tags/2.10.3.tar.gz
Last updated2026-04-18T21:51:53-04:00
Pulseupdated
Dependenciesberkeley-db, gettext, glib
Build dependenciesautoconf, automake, libtool, pkgconf
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared
CaveatsThe formula will switch DBM to Tkrzw in version 2.12 which may impact user data.

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

libpinyin-common-dev 2.8.1-1

library to deal with PinYin / zhuyin - common development files

https://github.com/libpinyin/libpinyin

sudo apt install libpinyin-common-dev
  • Section: libdevel
  • Architecture: all
  • Source Package: libpinyin
  • normalized package name match
  • Matched by: Libpinyin
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libpinyin-common-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libpinyin-data 2.8.1-1+b2

Data for PinYin / zhuyin input method library

https://github.com/libpinyin/libpinyin

sudo apt install libpinyin-data
  • Section: libs
  • Architecture: amd64
  • Source Package: libpinyin
  • normalized package name match
  • Matched by: Libpinyin
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libpinyin-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libpinyin-utils 2.8.1-1+b2

library to deal with PinYin - utilities

https://github.com/libpinyin/libpinyin

sudo apt install libpinyin-utils
  • Section: utils
  • Architecture: amd64
  • Source Package: libpinyin
  • 5 dependencies
  • normalized package name match
  • Matched by: Libpinyin
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libpinyin-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libpinyin15 2.8.1-1+b2

library to deal with PinYin

https://github.com/libpinyin/libpinyin

sudo apt install libpinyin15
  • Section: libs
  • Architecture: amd64
  • Source Package: libpinyin
  • 6 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Libpinyin
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libpinyin15 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libpinyin15-dev 2.8.1-1+b2

library to deal with PinYin - development files

https://github.com/libpinyin/libpinyin

sudo apt install libpinyin15-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libpinyin
  • 3 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Libpinyin
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libpinyin15-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libzhuyin-dev 2.8.1-1+b2

Development files for zhuyin input method library

https://github.com/libpinyin/libpinyin

sudo apt install libzhuyin-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libpinyin
  • 3 dependencies
  • normalized package name match
  • Matched by: Libpinyin
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libzhuyin-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libzhuyin15 2.8.1-1+b2

Zhuyin input method library

https://github.com/libpinyin/libpinyin

sudo apt install libzhuyin15
  • Section: libs
  • Architecture: amd64
  • Source Package: libpinyin
  • 6 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libpinyin
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libzhuyin15 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

libpinyin

nix profile install nixpkgs#libpinyin
  • normalized package name match
  • Matched by: Libpinyin
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/li/libpinyin/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libpinyin-common-dev 2.8.1-1build3

library to deal with PinYin / zhuyin - common development files

https://github.com/libpinyin/libpinyin

sudo apt install libpinyin-common-dev
  • Section: libdevel
  • Architecture: all
  • Source Package: libpinyin
  • normalized package name match
  • Matched by: Libpinyin
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libpinyin-common-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libpinyin-data 2.8.1-1build3

Data for PinYin / zhuyin input method library

https://github.com/libpinyin/libpinyin

sudo apt install libpinyin-data
  • Section: libs
  • Architecture: amd64
  • Source Package: libpinyin
  • normalized package name match
  • Matched by: Libpinyin
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libpinyin-data from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libpinyin-utils 2.8.1-1build3

library to deal with PinYin - utilities

https://github.com/libpinyin/libpinyin

sudo apt install libpinyin-utils
  • Section: universe/utils
  • Architecture: amd64
  • Source Package: libpinyin
  • 5 dependencies
  • normalized package name match
  • Matched by: Libpinyin
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libpinyin-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libpinyin15 2.8.1-1build3

library to deal with PinYin

https://github.com/libpinyin/libpinyin

sudo apt install libpinyin15
  • Section: libs
  • Architecture: amd64
  • Source Package: libpinyin
  • 6 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Libpinyin
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libpinyin15 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libpinyin15-dev 2.8.1-1build3

library to deal with PinYin - development files

https://github.com/libpinyin/libpinyin

sudo apt install libpinyin15-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: libpinyin
  • 3 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Libpinyin
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libpinyin15-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libzhuyin-dev 2.8.1-1build3

Development files for zhuyin input method library

https://github.com/libpinyin/libpinyin

sudo apt install libzhuyin-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: libpinyin
  • 3 dependencies
  • normalized package name match
  • Matched by: Libpinyin
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libzhuyin-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libzhuyin15 2.8.1-1build3

Zhuyin input method library

https://github.com/libpinyin/libpinyin

sudo apt install libzhuyin15
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: libpinyin
  • 6 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libpinyin
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libzhuyin15 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

libpinyin 2.11.91-r0

Library to deal with pinyin

https://github.com/libpinyin/libpinyin

sudo apk add libpinyin
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: libpinyin
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libpinyin
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libpinyin from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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