Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install opencc

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install opencc

MacPorts ports tree · textproc/opencc/Portfile · 来源: api.github.com

Linux

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

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

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

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

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

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

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

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

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

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

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

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

Windows

Windows Package Manager已验证 · 92%
winget install --id BYVoid.OpenCC -e

Windows Package Manager source index · BYVoid.OpenCC · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Simplified-traditional Chinese conversion tool

命令和别名

  • opencc
  • opencc_dict
  • opencc_phrase_extract

历史

项目历史与用法

OpenCC, Open Chinese Convert, is a conversion library and CLI for Traditional Chinese, Simplified Chinese, Japanese Shinjitai, regional vocabulary variants, and character/phrase-level Chinese script conversion.

项目历史

BYVoid's project page describes OpenCC as an open source Traditional/Simplified Chinese conversion project with high-quality phrase dictionaries and a C library, originally hosted on Google Code and GitHub. The source header credits Carbo Kuo and contributors from 2010 onward, giving the project a long maintenance history for what could otherwise look like a simple text filter.

The project evolved from a C/C++ conversion library and command-line tool into a multi-ecosystem package. The README lists installation paths through Debian, Ubuntu, Fedora, Arch Linux, Homebrew, WinGet, Bazel, Node.js, and Python, and includes C, C++, Node.js, and Python usage examples.

OpenCC's release history shows the project treating dictionaries and conversion behavior as first-class software. Version 1.1.0 introduced the `ocd2` dictionary format based on Marisa Trie and reduced dictionary size; version 1.3.x rewrote core conversion paths, added Jieba plugin work, and expanded diagnostics such as segmentation and inspection; version 1.4.0 raised the C++ ABI/SOVERSION to avoid silent ABI mismatches.

采用历史

OpenCC became a common dependency because script conversion is not just character substitution. The project emphasizes distinctions such as one-simplified-to-many-traditional mappings, variant characters, and regional vocabulary across Mainland China, Taiwan, Hong Kong, and Japanese Shinjitai.

The package's breadth across Python, Node.js, WinGet, Linux distributions, Homebrew, and Bazel makes it useful in desktop tools, web backends, NLP preprocessing, publishing pipelines, chat applications, and input-method ecosystems. OpenCC's own documentation states that it is not a Mandarin/Cantonese translation tool, which helps frame its adoption around orthography and vocabulary variants rather than language translation.

使用方式

Users run the `opencc` CLI with JSON configurations such as Simplified-to-Traditional, Traditional-to-Simplified, Taiwan phrase, Hong Kong phrase, or Japanese Shinjitai conversion modes. Developers embed the library through C/C++, Python, Node.js, or downstream ports when they need deterministic script conversion inside applications.

Dictionary maintainers and power users use `opencc_dict`, inline dictionaries, JSON/JSONC configuration, resource bundles, and diagnostic modes to inspect segmentation and conversion stages. Those tools matter because many conversion bugs are phrase-boundary or regional-vocabulary bugs rather than simple missing characters.

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

OpenCC is a deceptively deep package: a text converter with ABI, dictionary format, data-resource packaging, language bindings, prebuilt binaries, and region-sensitive data updates. The interesting packaging work is making the executable, shared library, dictionaries, configs, and bindings agree across platforms.

It is also a good example of data as code. Release notes are dominated by dictionary corrections, phrase additions, normalization behavior, and compatibility work, showing why downstreams need both the binary and the exact data files.

时间线

  • 2010: Source headers credit the beginning of the Carbo Kuo/contributor copyright span.
  • 2016: BYVoid's project page documented OpenCC as a Google Code and GitHub-hosted project with a C library and phrase dictionaries.
  • 2020-05-10: OpenCC 1.1.0 introduced the `ocd2` dictionary format and smaller Marisa Trie-backed dictionaries.
  • 2026-04-17: OpenCC 1.3.0 added experimental Jieba segmentation plugin work.
  • 2026-07-01: OpenCC 1.4.0 raised the C++ ABI/SOVERSION to 1.4 and hardened dictionary handling.

Related projects

  • Related packages include OpenCC's Python and Node.js bindings, opencc-js and other ports, Jieba segmentation integrations, Rime/librime input-method uses, and downstream operating-system packages that split OpenCC data, docs, and shared libraries.

安全态势

尚未找到受保护工具覆盖

没有找到 opencc 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://github.com/BYVoid/OpenCC

安装元数据

软件包元数据

软件包键brew:opencc
版本1.4.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/opencc
主页https://opencc.byvoid.com/
仓库https://github.com/BYVoid/OpenCC
上游文档https://byvoid.github.io/OpenCC
许可证Apache-2.0
源码归档https://github.com/BYVoid/OpenCC/archive/refs/tags/ver.1.4.0.tar.gz
最后更新2026-07-01T22:54:50Z
Pulseupdated
依赖marisa
构建依赖cmake
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

libopencc-data 1.1.9+ds1-1

simplified-traditional Chinese conversion library - data files

https://github.com/BYVoid/OpenCC

sudo apt install libopencc-data
  • Section: libs
  • Architecture: all
  • Source Package: opencc
  • normalized package name match
  • 匹配方式:Opencc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencc-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencc-dev 1.1.9+ds1-1+b1

simplified-traditional Chinese conversion library - development

https://github.com/BYVoid/OpenCC

sudo apt install libopencc-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: opencc
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Opencc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencc-doc 1.1.9+ds1-1

simplified-traditional Chinese conversion library - document

https://github.com/BYVoid/OpenCC

sudo apt install libopencc-doc
  • Section: libs
  • Architecture: all
  • Source Package: opencc
  • normalized package name match
  • 匹配方式:Opencc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencc-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libopencc1.1 1.1.9+ds1-1+b1

simplified-traditional Chinese conversion library - runtime

https://github.com/BYVoid/OpenCC

sudo apt install libopencc1.1
  • Section: libs
  • Architecture: amd64
  • Source Package: opencc
  • 5 依赖
  • normalized package name match
  • 匹配方式:Opencc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libopencc1.1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

opencc 1.1.9+ds1-1+b1

simplified-traditional Chinese conversion tool

https://github.com/BYVoid/OpenCC

sudo apt install opencc
  • Section: utils
  • Architecture: amd64
  • Source Package: opencc
  • 4 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Opencc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: opencc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-opencc 1.1.9+ds1-1+b1

simplified-traditional Chinese conversion library - Python 3.x

https://github.com/BYVoid/OpenCC

sudo apt install python3-opencc
  • Section: python
  • Architecture: amd64
  • Source Package: opencc
  • 5 依赖
  • normalized package name match
  • 匹配方式:Opencc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-opencc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

opencc

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

libopencc-data 1.1.7+ds1-1build1

simplified-traditional Chinese conversion library - data files

https://github.com/BYVoid/OpenCC

sudo apt install libopencc-data
  • Section: libs
  • Architecture: all
  • Source Package: opencc
  • normalized package name match
  • 匹配方式:Opencc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libopencc-data from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libopencc-dev 1.1.7+ds1-1build1

simplified-traditional Chinese conversion library - development

https://github.com/BYVoid/OpenCC

sudo apt install libopencc-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: opencc
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Opencc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libopencc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libopencc-doc 1.1.7+ds1-1build1

simplified-traditional Chinese conversion library - document

https://github.com/BYVoid/OpenCC

sudo apt install libopencc-doc
  • Section: doc
  • Architecture: all
  • Source Package: opencc
  • normalized package name match
  • 匹配方式:Opencc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libopencc-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libopencc1.1 1.1.7+ds1-1build1

simplified-traditional Chinese conversion library - runtime

https://github.com/BYVoid/OpenCC

sudo apt install libopencc1.1
  • Section: libs
  • Architecture: amd64
  • Source Package: opencc
  • 5 依赖
  • normalized package name match
  • 匹配方式:Opencc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libopencc1.1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

opencc 1.1.7+ds1-1build1

simplified-traditional Chinese conversion tool

https://github.com/BYVoid/OpenCC

sudo apt install opencc
  • Section: universe/utils
  • Architecture: amd64
  • 4 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Opencc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: opencc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

opencc 1.3.1-r0

Open Chinese Convert

https://opencc.byvoid.com/

sudo apk add opencc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: opencc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Opencc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: opencc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

opencc-dev 1.3.1-r0

Open Chinese Convert (development files)

https://opencc.byvoid.com/

sudo apk add opencc-dev
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: opencc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Opencc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: opencc-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

opencc-doc 1.3.1-r0

Open Chinese Convert (documentation)

https://opencc.byvoid.com/

sudo apk add opencc-doc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: opencc
  • normalized package name match
  • 匹配方式:Opencc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: opencc-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

opencc-libs 1.3.1-r0

Open Chinese Convert (libraries)

https://opencc.byvoid.com/

sudo apk add opencc-libs
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: opencc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Opencc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: opencc-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

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