# libchardet を Homebrew, dnf, Nix, pacman, apt, zypper でインストール

libchardet のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:libchardet
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install libchardet
```

  証拠: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install libchardet
```

  証拠: Fedora Rawhide package metadata: libchardet 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#libchardet
```

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

- pacman (92%):

```sh
sudo pacman -S libchardet
```

  証拠: Arch Linux sync databases: libchardet from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install libchardet-dev
```

  証拠: Debian stable package indexes: libchardet-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libchardet-devel
```

  証拠: openSUSE Tumbleweed package metadata: libchardet-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:libchardet
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/libchardet>
- **バージョン:** 1.0.6
- **ソース概要:** Mozilla's Universal Charset Detector C/C++ API
- **ホームページ:** <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>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- chardet-config (cli)
- chardet-config (エイリアス)

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.0.6
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/Joungkyun/libchardet
- 情報: No package-manager update timestamp was available.
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://formulae.brew.sh/formula/libchardet>
- <https://github.com/Joungkyun/libchardet>
- <https://www-archive.mozilla.org/projects/intl/chardet.html>
- <https://www-archive.mozilla.org/projects/intl/detectorsrc>
- <https://www-archive.mozilla.org/projects/intl/universalcharsetdetection>


## セキュリティノート

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:** libchardet
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- Debian apt - libchardet-dev - 1.0.6-1: normalized package name match | Debian stable package indexes: libchardet-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | universal charset detection library - development files | https://github.com/Joungkyun/libchardet
- Debian apt - libchardet1t64 - 1.0.6-1: normalized package name match | Debian stable package indexes: libchardet1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | universal charset detection library - shared library | https://github.com/Joungkyun/libchardet
- Nix - libchardet: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libchardet/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libchardet-dev - 1.0.4-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libchardet-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | universal charset detection library - development files | https://ftp.oops.org/pub/oops/libchardet/
- Ubuntu apt - libchardet1t64 - 1.0.4-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libchardet1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | universal charset detection library - shared library | https://ftp.oops.org/pub/oops/libchardet/
- dnf - libchardet - 1.0.5-24.fc45: normalized package name match | Fedora Rawhide package metadata: libchardet from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Mozilla's universal character set detector | http://ftp.oops.org/pub/oops/libchardet/
- dnf - libchardet-devel - 1.0.5-24.fc45: normalized package name match | 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 | Header and object files for development using libchardet | http://ftp.oops.org/pub/oops/libchardet/
- pacman - libchardet - 1.0.6-4: normalized package name match | Arch Linux sync databases: libchardet from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Mozilla's Universal Charset Detector C/C++ API | http://ftp.oops.org/pub/oops/libchardet
- zypper - libchardet-devel - 1.0.6-2.6: normalized package name match | openSUSE Tumbleweed package metadata: libchardet-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files of libchardet | https://github.com/Joungkyun/libchardet
- zypper - libchardet1 - 1.0.6-2.6: normalized package name match | openSUSE Tumbleweed package metadata: libchardet1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Mozilla Universal Chardet library | https://github.com/Joungkyun/libchardet


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cmigemo](https://pkg.so/ja/brew/cmigemo/) - Shares pkgdb curated category or tags: cli, developer-tools, library, text-processing.
- [libunicode](https://pkg.so/ja/brew/libunicode/) - Shares pkgdb curated category or tags: cli, developer-tools, library, text-processing.
- [bsdconv](https://pkg.so/ja/brew/bsdconv/) - Shares pkgdb curated category or tags: cli, developer-tools, library, text-processing.
- [glib](https://pkg.so/ja/brew/glib/) - Shares pkgdb curated category or tags: c, cli, developer-tools, library.
- [ada-url](https://pkg.so/ja/brew/ada-url/) - Shares pkgdb curated category or tags: cli, cpp, developer-tools, library.
- [libdeflate](https://pkg.so/ja/brew/libdeflate/) - Shares pkgdb curated category or tags: c, cli, developer-tools, library.
- [simdutf](https://pkg.so/ja/brew/simdutf/) - Shares pkgdb curated category or tags: cli, developer-tools, text-processing.
- [libdatrie](https://pkg.so/ja/brew/libdatrie/) - Shares pkgdb curated category or tags: c, cli, developer-tools, library.
- [recode](https://pkg.so/ja/brew/recode/) - Local package facts share a topical domain. Shared terms: charset, cli, developer, developer-tools, encoding.

## Combined YAML source

View the package source record on GitHub. [combined/libchardet.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libchardet.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
