macOS
brew install gliblocal Homebrew formula metadata
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de glib pour les workflows d'agents IA.
installation
brew install gliblocal Homebrew formula metadata
sudo apk add glibAlpine Linux edge package indexes · glib · Source: dl-cdn.alpinelinux.org
sudo dnf install glibFedora Rawhide package metadata · glib · Source: dl.fedoraproject.org
nix profile install nixpkgs#glibnixpkgs package indexes · pkgs/by-name/gl/glib/package.nix · Source: api.github.com
sudo zypper install libgio-2_0-0openSUSE Tumbleweed package metadata · libgio-2_0-0 · Source: download.opensuse.org
aperçu
Core application library for C
historique
GLib is the low-level C foundation used by GTK and GNOME, providing portable data structures, strings, file utilities, process helpers, main-loop primitives, dynamic modules, object typing, I/O, IPC, networking, settings, and system integration APIs.
GLib emerged as the shared utility layer beneath GTK-era C applications, and GNOME's release archive shows stable 1.2 releases in 1999 before the 2.0 line began in 2002. The 2.x API family established the long-lived GLib, GObject, GModule, and GIO split documented by GTK and GNOME.
Over time, GLib expanded from basic C convenience routines into a broad application substrate. GObject supplied an object and type system for C, GModule abstracted dynamic loading, and GIO added higher-level APIs for streaming I/O, files, D-Bus, networking, resources, settings, and application integration.
The project moved its source and issue workflow to GNOME's GitLab, while release archives remained available from GNOME download infrastructure. Its documentation moved to gi-docgen-generated API pages under docs.gtk.org, reflecting GLib's role as an introspection-friendly base library for language bindings.
GLib's adoption followed GTK and GNOME but spread beyond graphical applications because it offered portable C building blocks without requiring a GUI. Projects use it for event loops, data containers, structured error handling, Unicode and string helpers, command-line option parsing, tests, and cross-platform runtime glue.
The library is a dependency root in Linux desktop stacks: installing GTK, GNOME services, GStreamer components, and many C libraries often brings GLib along. Its ABI stability and regular release train make it one of the packages that distribution maintainers track carefully during desktop, toolchain, and security updates.
Practitioners use GLib through headers such as `glib.h` and pkg-config modules such as `glib-2.0`. Application code commonly uses `GList`, `GHashTable`, `GError`, `GMainLoop`, `GOptionContext`, `GKeyFile`, and automatic cleanup helpers to write portable C with fewer platform-specific branches.
The Homebrew package also exposes developer utilities such as `glib-compile-resources`, `glib-compile-schemas`, `gdbus`, `gio`, `gsettings`, `glib-genmarshal`, and `glib-mkenums`. These tools generate resources, schemas, marshalling code, enum metadata, and D-Bus helpers used by GTK and GNOME-style applications.
GLib is package-manager infrastructure by gravity: it is small enough to be a library dependency but central enough that ABI, introspection data, and helper binaries affect large parts of a desktop stack. Packagers care about its Meson build, gir data, schema/resource tools, and tight relationship with GTK release cycles.
Because GLib abstracts platform details while staying in C, it also acts as a compatibility layer between Unix-like systems, Windows ports, language bindings, and higher-level GNOME libraries.
posture de sécurité
library-like package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
gapplication | cli | exécutable global | |
gdbus | cli | exécutable global | |
gdbus-codegen | cli | exécutable global | |
gi-compile-repository | cli | exécutable global | |
gi-decompile-typelib | cli | exécutable global | |
gi-inspect-typelib | cli | exécutable global | |
gio | cli | exécutable global | |
gio-querymodules | cli | exécutable global | |
glib-compile-resources | cli | exécutable global | |
glib-compile-schemas | cli | exécutable global | |
glib-genmarshal | cli | exécutable global | |
glib-gettextize | cli | exécutable global | |
glib-mkenums | cli | exécutable global | |
gobject-query | cli | exécutable global | |
gresource | cli | exécutable global | |
gsettings | cli | exécutable global | |
gtester | cli | exécutable global | |
gtester-report | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
métadonnées d'installation
| Clé du paquet | brew:glib |
|---|---|
| Version | 2.88.2 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/glib |
| Page d'accueil | https://docs.gtk.org/glib/ |
| Dépôt | https://gitlab.gnome.org/GNOME/glib |
| Docs amont | https://docs.gtk.org/glib |
| Licence | LGPL-2.1-or-later |
| Archive source | https://download.gnome.org/sources/glib/2.88/glib-2.88.2.tar.xz |
| Dernière mise à jour | 2026-06-27T11:06:01-04:00 |
| Pulse | updated |
| Dépendances | gettext, pcre2 |
| Dépendances de compilation | bison, gettext, meson, ninja, pkgconf, python-setuptools, python@3.14 |
| Bibliothèques fournies par macOS | libffi, python |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | glib |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
glib
nix profile install nixpkgs#glibglib 2.88.1-r2
Low-level core library that forms the basis for projects such as GTK and GNOME
https://developer.gnome.org/glib/
sudo apk add glibglib-bash-completion 2.88.1-r2
Bash completions for glib
https://developer.gnome.org/glib/
sudo apk add glib-bash-completionglib-dbg 2.88.1-r2
Low-level core library that forms the basis for projects such as GTK and GNOME (debug symbols)
https://developer.gnome.org/glib/
sudo apk add glib-dbgglib-dev 2.88.1-r2
Low-level core library that forms the basis for projects such as GTK and GNOME (development files)
https://developer.gnome.org/glib/
sudo apk add glib-devglib-doc 2.88.1-r2
Low-level core library that forms the basis for projects such as GTK and GNOME (documentation)
https://developer.gnome.org/glib/
sudo apk add glib-docglib-lang 2.88.1-r2
Languages for package glib
https://developer.gnome.org/glib/
sudo apk add glib-langglib-static 2.88.1-r2
Low-level core library that forms the basis for projects such as GTK and GNOME (static library)
https://developer.gnome.org/glib/
sudo apk add glib-staticglib 1.2.10-77.fc44
A library of handy utility functions
sudo dnf install glibglib-devel 1.2.10-77.fc44
Libraries and header files for glib development
sudo dnf install glib-devellibgio-2_0-0 2.88.1-1.1
A virtual file system library API
https://gitlab.gnome.org/GNOME/glib/
sudo zypper install libgio-2_0-0piste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.