pkg.soopen package index

brew / 排名 11341

使用 Homebrew, dnf, Nix, pacman, apt, zypper 安装 libchardet

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install libchardet

local Homebrew formula metadata

Linux

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

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

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

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

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

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

Debian apt已验证 · 92%
sudo apt install libchardet-dev

Debian stable package indexes · libchardet-dev · 来源: deb.debian.org

openSUSE zypper已验证 · 92%
sudo zypper install libchardet-devel

openSUSE Tumbleweed package metadata · libchardet-devel · 来源: download.opensuse.org

概览

软件包摘要

Mozilla's Universal Charset Detector C/C++ API

命令和别名

  • chardet-config

历史

项目历史与用法

libchardet is a C/C++ API around Mozilla's Universal Charset Detector lineage. It detects the likely character encoding of byte streams, a task that matters when programs ingest legacy text without reliable charset labels.

项目历史

Mozilla's archived charset detector documentation describes the original detector as an XPCOM component that receives bytes and guesses the charset. A companion Mozilla document from 2002 explains that the universal detector implementation was separable from the XPCOM wrapper and could be used by other projects.

The libchardet README says the library is based on Mozilla Universal Charset Detector code originally written by Netscape Communications Corporation, with a C wrapping API and libtool build environment. It also records later changes: version 1.0.5 incorporated single-byte charset confidence ideas and language models from uchardet, and version 1.0.6 added BOM reporting.

采用历史

libchardet's adoption is narrower than Python chardet or uchardet, but it fills the same packaging niche for C/C++ consumers that need Mozilla-style charset guessing without embedding the whole browser-era component. The batch input lists packages in Homebrew, Debian/Ubuntu, Fedora, Arch, Nix, and openSUSE, mostly as a development library.

使用方式

The repository documents a small API centered on detect_obj_init, detect or detect_r, confidence reporting, and object cleanup. The package also installs chardet-config for build integration, so downstream C/C++ projects can compile against the library.

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

libchardet is significant because charset detection is one of those small compatibility problems that keeps returning in editors, importers, scrapers, mail tools, and document converters. It also shows how browser infrastructure escaped into standalone libraries: Mozilla/Netscape detection code became reusable C, Python, Perl, and other language bindings.

时间线

  • 2002-08-15: Mozilla charset detector documentation was last modified.
  • 2002-11-06: Mozilla standalone universal charset detector notes described using the detector outside Mozilla.
  • 2019: libchardet README copyright line names JoungKyun.Kim and describes the standalone C/C++ API.
  • 2021-05-13: GitHub release listing shows libchardet 1.0.6.

Related projects

  • Related projects include Mozilla Universal Charset Detector, uchardet, Python chardet, John Gardiner Myers's Encode-Detect Perl module, and applications that need to infer encodings before decoding text.

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
chardet-configcli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://github.com/Joungkyun/libchardet

安装元数据

软件包元数据

软件包键brew:libchardet
版本1.0.6
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/libchardet
主页https://github.com/Joungkyun/libchardet
仓库https://github.com/Joungkyun/libchardet
许可证MPL-1.1 OR LGPL-2.1-only
源码归档https://github.com/Joungkyun/libchardet/releases/download/1.0.6/libchardet-1.0.6.tar.bz2
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

libchardet-dev 1.0.6-1

universal charset detection library - development files

https://github.com/Joungkyun/libchardet

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

libchardet1t64 1.0.6-1

universal charset detection library - shared library

https://github.com/Joungkyun/libchardet

sudo apt install libchardet1t64
  • Section: libs
  • Architecture: amd64
  • Source Package: libchardet
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Libchardet
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libchardet1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

libchardet

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

libchardet-dev 1.0.4-1.1build1

universal charset detection library - development files

https://ftp.oops.org/pub/oops/libchardet/

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

libchardet1t64 1.0.4-1.1build1

universal charset detection library - shared library

https://ftp.oops.org/pub/oops/libchardet/

sudo apt install libchardet1t64
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: libchardet
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Libchardet
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libchardet1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

libchardet 1.0.5-24.fc45

Mozilla's universal character set detector

http://ftp.oops.org/pub/oops/libchardet/

sudo dnf install libchardet
  • License: LicenseRef-Callaway-MPLv1.1 OR LicenseRef-Callaway-LGPLv2+ OR GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libchardet
  • 5 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Libchardet
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libchardet from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst
dnf95%

libchardet-devel 1.0.5-24.fc45

Header and object files for development using libchardet

http://ftp.oops.org/pub/oops/libchardet/

sudo dnf install libchardet-devel
  • License: LicenseRef-Callaway-MPLv1.1 OR LicenseRef-Callaway-LGPLv2+ OR GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libchardet
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Libchardet
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libchardet-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst
pacman95%

libchardet 1.0.6-4

Mozilla's Universal Charset Detector C/C++ API

http://ftp.oops.org/pub/oops/libchardet

sudo pacman -S libchardet
  • License: MPL-1.1
  • Architecture: x86_64
  • 4 依赖
  • normalized package name match
  • 匹配方式:Libchardet
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: libchardet from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

libchardet-devel 1.0.6-2.6

Development files of libchardet

https://github.com/Joungkyun/libchardet

sudo zypper install libchardet-devel
  • License: MPL-1.1
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: libchardet
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Libchardet
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libchardet-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
zypper95%

libchardet1 1.0.6-2.6

Mozilla Universal Chardet library

https://github.com/Joungkyun/libchardet

sudo zypper install libchardet1
  • License: MPL-1.1
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: libchardet
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Libchardet
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libchardet1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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