Automic VaultAutomic Vault

brew

Install libchardet with Homebrew, apt, dnf, Nix, pacman, zypper

Mozilla's Universal Charset Detector C/C++ API. Version 1.0.6 via Homebrew; verified 2026-06-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install libchardet

local Homebrew formula metadata

Linux

Debian aptverified · 92%
sudo apt install libchardet-dev

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

Fedora dnfverified · 92%
sudo dnf install libchardet

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

Nixverified · 92%
nix profile install nixpkgs#libchardet

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

Arch Linux pacmanverified · 92%
sudo pacman -S libchardet

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

openSUSE zypperverified · 92%
sudo zypper install libchardet-devel

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

overview

Package summary

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

Commands and aliases

  • chardet-config

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

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.
  • Build metadata lists 3 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
chardet-configcliglobal 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 version1.0.6
manager updated2026-06-22
local dataok
upstreamcurrent
latest detected1.0.6

https://github.com/Joungkyun/libchardet

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:libchardet
Version1.0.6
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/libchardet
Homepagehttps://github.com/Joungkyun/libchardet
Repositoryhttps://github.com/Joungkyun/libchardet
Upstream docshttps://github.com/Joungkyun/libchardet#readme
LicenseMPL-1.1 OR LGPL-2.1-only
Source archivehttps://github.com/Joungkyun/libchardet/archive/refs/tags/1.0.6.tar.gz
Last updated2026-06-22T14:05:15-07:00
Pulseupdated
Build dependenciesautoconf, automake, libtool
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

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%

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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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-23.fc44

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 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libchardet-devel 1.0.5-23.fc44

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 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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 dependencies
  • normalized package name match
  • Matched by: 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.4

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 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Libchardet
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libchardet-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libchardet1 1.0.6-2.4

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 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Libchardet
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libchardet1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

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