macOS
brew install glibclocal Homebrew formula metadata
安装
brew install glibclocal Homebrew formula metadata
sudo dnf install glibcFedora Rawhide package metadata · glibc · 来源: dl.fedoraproject.org
nix profile install nixpkgs#glibcnixpkgs package indexes · glibc · 来源: raw.githubusercontent.com
sudo pacman -S glibcArch Linux sync databases · glibc · 来源: geo.mirror.pkgbuild.com
sudo zypper install glibcopenSUSE Tumbleweed package metadata · glibc · 来源: download.opensuse.org
sudo apt install glibc-docDebian stable package indexes · glibc-doc · 来源: deb.debian.org
概览
GNU C Library
历史
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
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 | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| 依赖 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | glibc |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
glibc-doc 2.41-12+deb13u3
GNU C Library: Documentation
https://www.gnu.org/software/libc/libc.html
sudo apt install glibc-docglibc-source 2.41-12+deb13u3
GNU C Library: sources
https://www.gnu.org/software/libc/libc.html
sudo apt install glibc-sourcelibc-bin 2.41-12+deb13u3
GNU C Library: Binaries
https://www.gnu.org/software/libc/libc.html
sudo apt install libc-binlibc-dev-bin 2.41-12+deb13u3
GNU C Library: Development binaries
https://www.gnu.org/software/libc/libc.html
sudo apt install libc-dev-binlibc-devtools 2.41-12+deb13u3
GNU C Library: Development tools
https://www.gnu.org/software/libc/libc.html
sudo apt install libc-devtoolslibc-l10n 2.41-12+deb13u3
GNU C Library: localization files
https://www.gnu.org/software/libc/libc.html
sudo apt install libc-l10nlibc6 2.41-12+deb13u3
GNU C Library: Shared libraries
https://www.gnu.org/software/libc/libc.html
sudo apt install libc6libc6-dbg 2.41-12+deb13u3
GNU C Library: detached debugging symbols
https://www.gnu.org/software/libc/libc.html
sudo apt install libc6-dbglibc6-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-devlibc6-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-i386libc6-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-x32libc6-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-i386libc6-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-x32locales 2.41-12+deb13u3
GNU C Library: National Language (locale) data [support]
https://www.gnu.org/software/libc/libc.html
sudo apt install localeslocales-all 2.41-12+deb13u3
GNU C Library: Precompiled locale data
https://www.gnu.org/software/libc/libc.html
sudo apt install locales-allnscd 2.41-12+deb13u3
GNU C Library: Name Service Cache Daemon
https://www.gnu.org/software/libc/libc.html
sudo apt install nscd来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.