# Install glibc with Homebrew, apt, dnf, Nix, pacman, zypper

GNU C Library. Version 2.39 via Homebrew; verified 2026-06-25.

## Install

```sh
sudo av install brew:glibc
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install glibc
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install glibc-doc
```

  Evidence: Debian stable package indexes: glibc-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install compat-libpthread-nonshared
```

  Evidence: Fedora Rawhide package metadata: compat-libpthread-nonshared from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#glibc
```

  Evidence: nixpkgs package indexes: glibc from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S glibc
```

  Evidence: Arch Linux sync databases: glibc from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install glibc
```

  Evidence: openSUSE Tumbleweed package metadata: glibc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:glibc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/glibc>
- **Version:** 2.39
- **Source summary:** GNU C Library
- **Homepage:** <https://www.gnu.org/software/libc/>
- **Repository:** <https://sourceware.org/git/glibc.git>
- **Upstream docs:** <https://sourceware.org/glibc/manual/2.43/html_node/index.html>
- **License:** GPL-2.0-or-later AND LGPL-2.1-or-later
- **Source archive:** <https://ftpmirror.gnu.org/gnu/glibc/glibc-2.39.tar.gz>
- **Last updated:** 2026-06-25T08:00:45-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gencat (cli)
- getconf (cli)
- getent (cli)
- iconvconfig (cli)
- ld.so (cli)
- ldconfig (cli)
- ldd (cli)
- locale (cli)
- localedef (cli)
- makedb (cli)
- mtrace (cli)
- nscd (cli)
- pcprofiledump (cli)
- pldd (cli)
- sln (cli)
- sotruss (cli)
- sprof (cli)
- tzselect (cli)
- xtrace (cli)
- zdump (cli)
- zic (cli)
- gencat (alias)
- getconf (alias)
- getent (alias)
- iconvconfig (alias)
- ld.so (alias)
- ldconfig (alias)
- ldd (alias)
- locale (alias)
- localedef (alias)
- makedb (alias)
- mtrace (alias)
- nscd (alias)
- pcprofiledump (alias)
- pldd (alias)
- sln (alias)
- sotruss (alias)
- sprof (alias)
- tzselect (alias)
- xtrace (alias)
- zdump (alias)
- zic (alias)

## Dependencies

- linux-headers@6.8

## Install behavior

- Post-install hook: defined
- Caveats: The Homebrew's Glibc has been installed with the following executables: $HOMEBREW_PREFIX/opt/glibc/bin/ldd $HOMEBREW_PREFIX/opt/glibc/bin/ld.so $HOMEBREW_PREFIX/opt/glibc/sbin/ldconfig By default, Homebrew's linker will not search for the system's libraries. If you want Homebrew to do so, run: cp "$HOMEBREW_PREFIX/etc/ld.so.conf.d/99-system-ld.so.conf.example" "$HOMEBREW_PREFIX/etc/ld.so.conf.d/99-system-ld.so.conf" brew postinstall glibc to append the system libraries to Homebrew's ld search paths. This is risky and **highly not recommended**, because it may cause linkage to Homebrew libraries mixed with system libraries.
- Bottle: available on arm64_linux, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.39
- Package-manager updated: 2026-06-25
- Local data: ok
- Upstream repository: https://www.gnu.org/software/libc/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

glibc, the GNU C Library, is the C runtime library used by GNU systems and by most systems with the Linux kernel. It supplies ISO C, POSIX, GNU, internationalization, dynamic loading, locale, resolver, threading, math, and system-call wrapper facilities that user-space programs link against.

### Project history

The GNU C Library belongs to the GNU project's effort to provide a complete free Unix-like system. GNU FTP archives show glibc 1.09-era tarballs in the mid-1990s and glibc 2.0.1 in 1997, after which the 2.x line became the long-lived ABI base for Linux distributions.

Sourceware's glibc wiki describes the library as the C library for GNU systems and most Linux-kernel systems, with goals of portability, performance, standards conformance, and extensive internationalization. Its interface history is shaped by ISO C, POSIX, BSD, System V, GNU extensions, and compatibility modes selected at application build time.

glibc development is organized around the Sourceware Git repository, Bugzilla, architecture maintainers, libc-alpha review, release management, and a large testsuite. The project has to balance new CPU architectures, compiler behavior, Linux kernel interfaces, POSIX standards, security fixes, and backwards-compatible ABI promises.

### Adoption history

glibc became one of the defining packages of mainstream Linux distributions because nearly every dynamically linked C program depends on the loader and libc ABI. Distribution upgrades, container base images, cross-toolchains, and binary compatibility policies all treat glibc as a core system component rather than an ordinary leaf package.

Its adoption also made it a reference point for alternatives such as musl, uClibc-ng, Bionic, and BSD libcs. Those projects are often evaluated against glibc's breadth, compatibility, locale behavior, dynamic linker features, and Linux ecosystem expectations.

### How it is used

Practitioners rarely call glibc as a standalone application; they compile and link C, C++, Go cgo, Rust libc-using crates, Python extensions, and many other native programs against its headers and shared libraries. Runtime tools such as `ldd`, `getconf`, `getent`, `locale`, `localedef`, `iconv`, and `ldconfig` expose pieces of that system layer to administrators and packagers.

Toolchain and packaging work often involves matching glibc with GCC or clang, binutils, Linux kernel headers, and distribution policy. Developers use the manual for APIs, feature-test macros, portability notes, locale behavior, memory allocation, dynamic loading, threads, sockets, name service, and process facilities.

### Why package nerds care

glibc is one of the packages that defines a Linux system's ABI. A version bump can affect symbol versions, dynamic loader behavior, DNS and NSS behavior, locale archives, threading primitives, container compatibility, and the minimum runtime expected by prebuilt binaries.

For package managers, glibc is therefore both dependency and platform. It must be upgraded with care, tested broadly, and kept compatible with binaries built over many years, while still tracking kernel, compiler, security, and standards changes.

### Timeline

- 1994: GNU FTP archive lists glibc 1.09 crypt add-on material.
- 1997: glibc 2.0.1 archive published.
- 2000s: glibc 2.x became the common C library base for major Linux distributions.
- 2010s: Sourceware Git, Bugzilla, architecture maintainers, and libc-alpha review became the visible development workflow.
- 2020s: Twice-yearly release management and broad CI/testsuite work continued around Linux, GNU, compiler, and CPU-architecture changes.

### Related projects

- glibc is tied to the GNU Compiler Collection, binutils, Linux kernel headers, GNU Hurd, POSIX standards work, Linux man-pages, distribution toolchains, musl, uClibc-ng, Bionic, and BSD C libraries.

### Sources

- <https://ftp.gnu.org/gnu/glibc/>
- <https://sourceware.org/glibc/manual/2.43/html_node/Introduction.html>
- <https://sourceware.org/glibc/wiki/HomePage>
- <https://www.gnu.org/software/libc/>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** glibc
- **Aliases:** glibc@2.39
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** brewedglibcnotolder, linux, linuxkernel
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** yes
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - glibc-doc - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: glibc-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: Documentation | https://www.gnu.org/software/libc/libc.html
- Debian apt - glibc-source - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: glibc-source from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: sources | https://www.gnu.org/software/libc/libc.html
- Debian apt - libc-bin - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: libc-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: Binaries | https://www.gnu.org/software/libc/libc.html
- Debian apt - libc-dev-bin - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: libc-dev-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: Development binaries | https://www.gnu.org/software/libc/libc.html
- Debian apt - libc-devtools - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: libc-devtools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: Development tools | https://www.gnu.org/software/libc/libc.html
- Debian apt - libc-l10n - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: libc-l10n from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: localization files | https://www.gnu.org/software/libc/libc.html
- Debian apt - libc6 - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: libc6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: Shared libraries | https://www.gnu.org/software/libc/libc.html
- Debian apt - libc6-dbg - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: libc6-dbg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: detached debugging symbols | https://www.gnu.org/software/libc/libc.html
- Debian apt - libc6-dev - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: libc6-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: Development Libraries and Header Files | https://www.gnu.org/software/libc/libc.html
- Debian apt - libc6-dev-i386 - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: libc6-dev-i386 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: 32-bit development libraries for AMD64 | https://www.gnu.org/software/libc/libc.html
- Debian apt - libc6-dev-x32 - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: libc6-dev-x32 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: X32 ABI Development Libraries for AMD64 | https://www.gnu.org/software/libc/libc.html
- Debian apt - libc6-i386 - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: libc6-i386 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: 32-bit shared libraries for AMD64 | https://www.gnu.org/software/libc/libc.html
- Debian apt - libc6-x32 - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: libc6-x32 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: X32 ABI Shared libraries for AMD64 | https://www.gnu.org/software/libc/libc.html
- Debian apt - locales - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: locales from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: National Language (locale) data [support] | https://www.gnu.org/software/libc/libc.html
- Debian apt - locales-all - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: locales-all from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: Precompiled locale data | https://www.gnu.org/software/libc/libc.html
- Debian apt - nscd - 2.41-12+deb13u3: normalized package name match | Debian stable package indexes: nscd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C Library: Name Service Cache Daemon | https://www.gnu.org/software/libc/libc.html


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [glibc@2.13](https://www.automicvault.com/pkg/brew/glibc-2-13/) - Package name indicates the same formula family.
- [glibc@2.17](https://www.automicvault.com/pkg/brew/glibc-2-17/) - Package name indicates the same formula family.
- [chmlib](https://www.automicvault.com/pkg/brew/chmlib/) - Shares av.db curated category or tags: cli, libraries, system.
- [crun](https://www.automicvault.com/pkg/brew/crun/) - Shares av.db curated category or tags: c-library, cli, linux, system.
- [isa-l](https://www.automicvault.com/pkg/brew/isa-l/) - Shares av.db curated category or tags: cli, libraries, system.
- [liblockfile](https://www.automicvault.com/pkg/brew/liblockfile/) - Shares av.db curated category or tags: cli, libraries, system.
- [b43-fwcutter](https://www.automicvault.com/pkg/brew/b43-fwcutter/) - Shares av.db curated category or tags: cli, linux, system.
- [bash](https://www.automicvault.com/pkg/brew/bash/) - Shares av.db curated category or tags: cli, gnu, system.
- [bc](https://www.automicvault.com/pkg/brew/bc/) - Shares av.db curated category or tags: cli, gnu, system.
- [bluez](https://www.automicvault.com/pkg/brew/bluez/) - Shares av.db curated category or tags: cli, linux, system.
- [coreutils](https://www.automicvault.com/pkg/brew/coreutils/) - Local package facts share a topical domain. Shared terms: cli, gnu, system.

## Combined YAML source

View the package source record on GitHub. [combined/glibc.yml](https://github.com/automic-vault/db/blob/main/combined/glibc.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
