Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install glibc

local Homebrew formula metadata

Linux

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

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

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

nixpkgs package indexes · glibc · 来源: raw.githubusercontent.com

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

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

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

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

Debian apt已验证 · 92%
sudo apt install glibc-doc

Debian stable package indexes · glibc-doc · 来源: deb.debian.org

概览

软件包摘要

GNU C Library

命令和别名

  • gencat
  • getconf
  • getent
  • iconvconfig
  • ld.so
  • ldconfig
  • ldd
  • locale
  • localedef
  • makedb
  • mtrace
  • nscd
  • pcprofiledump
  • pldd
  • sln
  • sotruss
  • sprof
  • tzselect
  • xtrace
  • zdump
  • zic

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

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

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.

时间线

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

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • Homebrew 为此 formula 声明了 post-install 钩子。
  • Homebrew bottle 元数据适用于 2 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
gencatcli全局可执行文件
getconfcli全局可执行文件
getentcli全局可执行文件
iconvconfigcli全局可执行文件
ld.socli全局可执行文件
ldconfigcli全局可执行文件
lddcli全局可执行文件
localecli全局可执行文件
localedefcli全局可执行文件
makedbcli全局可执行文件
mtracecli全局可执行文件
nscdcli全局可执行文件
pcprofiledumpcli全局可执行文件
plddcli全局可执行文件
slncli全局可执行文件
sotrusscli全局可执行文件
sprofcli全局可执行文件
tzselectcli全局可执行文件
xtracecli全局可执行文件
zdumpcli全局可执行文件
ziccli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://www.gnu.org/software/libc/

安装元数据

软件包元数据

软件包键brew:glibc
版本2.39
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/glibc
主页https://www.gnu.org/software/libc/
仓库https://sourceware.org/git/glibc.git
上游文档https://sourceware.org/glibc/manual/2.43/html_node/index.html
许可证GPL-2.0-or-later AND LGPL-2.1-or-later
源码归档https://ftpmirror.gnu.org/gnu/glibc/glibc-2.39.tar.gz
最后更新2026-07-21T13:33:00Z
Pulseupdated
依赖linux-headers@6.8
Bottle可用 (于 arm64_linux, x86_64_linux)
Homebrew post-install已定义
服务未声明
注意事项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.

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameglibc
Aliases
  • glibc@2.39
Version Scheme0
Revision0
Requirements
  • brewedglibcnotolder
  • linux
  • linuxkernel
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

glibc-doc 2.41-12+deb13u3

GNU C Library: Documentation

https://www.gnu.org/software/libc/libc.html

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

glibc-source 2.41-12+deb13u3

GNU C Library: sources

https://www.gnu.org/software/libc/libc.html

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

libc-bin 2.41-12+deb13u3

GNU C Library: Binaries

https://www.gnu.org/software/libc/libc.html

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

libc-dev-bin 2.41-12+deb13u3

GNU C Library: Development binaries

https://www.gnu.org/software/libc/libc.html

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

libc-devtools 2.41-12+deb13u3

GNU C Library: Development tools

https://www.gnu.org/software/libc/libc.html

sudo apt install libc-devtools
  • Section: devel
  • Architecture: amd64
  • Source Package: glibc
  • 2 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Glibc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libc-devtools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libc-l10n 2.41-12+deb13u3

GNU C Library: localization files

https://www.gnu.org/software/libc/libc.html

sudo apt install libc-l10n
  • Section: localization
  • Architecture: all
  • Source Package: glibc
  • normalized package name match
  • 匹配方式:Glibc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libc-l10n from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libc6 2.41-12+deb13u3

GNU C Library: Shared libraries

https://www.gnu.org/software/libc/libc.html

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

libc6-dbg 2.41-12+deb13u3

GNU C Library: detached debugging symbols

https://www.gnu.org/software/libc/libc.html

sudo apt install libc6-dbg
  • Section: debug
  • Architecture: amd64
  • Source Package: glibc
  • 1 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Glibc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libc6-dbg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libc6-dev 2.41-12+deb13u3

GNU C Library: Development Libraries and Header Files

https://www.gnu.org/software/libc/libc.html

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

libc6-dev-i386 2.41-12+deb13u3

GNU C Library: 32-bit development libraries for AMD64

https://www.gnu.org/software/libc/libc.html

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

libc6-dev-x32 2.41-12+deb13u3

GNU C Library: X32 ABI Development Libraries for AMD64

https://www.gnu.org/software/libc/libc.html

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

libc6-i386 2.41-12+deb13u3

GNU C Library: 32-bit shared libraries for AMD64

https://www.gnu.org/software/libc/libc.html

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

libc6-x32 2.41-12+deb13u3

GNU C Library: X32 ABI Shared libraries for AMD64

https://www.gnu.org/software/libc/libc.html

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

locales 2.41-12+deb13u3

GNU C Library: National Language (locale) data [support]

https://www.gnu.org/software/libc/libc.html

sudo apt install locales
  • Section: localization
  • Architecture: all
  • Source Package: glibc
  • 4 依赖
  • normalized package name match
  • 匹配方式:Glibc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: locales from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

locales-all 2.41-12+deb13u3

GNU C Library: Precompiled locale data

https://www.gnu.org/software/libc/libc.html

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

nscd 2.41-12+deb13u3

GNU C Library: Name Service Cache Daemon

https://www.gnu.org/software/libc/libc.html

sudo apt install nscd
  • Section: admin
  • Architecture: amd64
  • Source Package: glibc
  • 4 依赖
  • normalized package name match
  • 匹配方式:Glibc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nscd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

来源线索

由仓库数据生成

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