Automic VaultAutomic Vault

brew

Install glib with Homebrew, apk, dnf, Nix, zypper

Core application library for C. Version 2.88.2 via Homebrew; verified 2026-06-27.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install glib

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add glib

Alpine Linux edge package indexes · glib · source: dl-cdn.alpinelinux.org

Fedora dnfverified · 92%
sudo dnf install glib

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

Nixverified · 92%
nix profile install nixpkgs#glib

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

openSUSE zypperverified · 92%
sudo zypper install libgio-2_0-0

openSUSE Tumbleweed package metadata · libgio-2_0-0 · source: download.opensuse.org

overview

Package summary

Core application library for C

Commands and aliases

  • gapplication
  • gdbus
  • gdbus-codegen
  • gi-compile-repository
  • gi-decompile-typelib
  • gi-inspect-typelib
  • gio
  • gio-querymodules
  • glib-compile-resources
  • glib-compile-schemas
  • glib-genmarshal
  • glib-gettextize
  • glib-mkenums
  • gobject-query
  • gresource
  • gsettings
  • gtester
  • gtester-report

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 1999: GLib 1.2.0 release archive published by GNOME.
  • 2002: GLib 2.0.0 release archive published by GNOME.
  • 2010s: GIO, D-Bus, settings, resources, and introspection workflows made GLib a broader application framework base.
  • 2020s: gi-docgen API references and GitLab-hosted development became the normal documentation and contribution path.

Related projects

  • GLib underpins GTK and GNOME, and is closely related to GObject, GModule, GIO, GdkPixbuf, Pango, GStreamer, D-Bus, Meson, and GObject Introspection.

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.
  • Installs with 2 runtime dependencies.
  • Build metadata lists 7 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
gapplicationcliglobal executable
gdbuscliglobal executable
gdbus-codegencliglobal executable
gi-compile-repositorycliglobal executable
gi-decompile-typelibcliglobal executable
gi-inspect-typelibcliglobal executable
giocliglobal executable
gio-querymodulescliglobal executable
glib-compile-resourcescliglobal executable
glib-compile-schemascliglobal executable
glib-genmarshalcliglobal executable
glib-gettextizecliglobal executable
glib-mkenumscliglobal executable
gobject-querycliglobal executable
gresourcecliglobal executable
gsettingscliglobal executable
gtestercliglobal executable
gtester-reportcliglobal 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 version2.88.2
manager updated2026-06-27
local dataok
upstreamnot checked
latest detectednot detected

https://docs.gtk.org/glib/

install metadata

Package metadata

Package keybrew:glib
Version2.88.2
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/glib
Homepagehttps://docs.gtk.org/glib/
Repositoryhttps://gitlab.gnome.org/GNOME/glib
Upstream docshttps://docs.gtk.org/glib
LicenseLGPL-2.1-or-later
Source archivehttps://download.gnome.org/sources/glib/2.88/glib-2.88.2.tar.xz
Last updated2026-06-27T11:06:01-04:00
Pulseupdated
Dependenciesgettext, pcre2
Build dependenciesbison, gettext, meson, ninja, pkgconf, python-setuptools, python@3.14
Uses from macOSlibffi, python
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 Nameglib
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.

Nix95%

glib

nix profile install nixpkgs#glib
  • normalized package name match
  • Matched by: Glib
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gl/glib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

glib 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 glib
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: glib
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Glib
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glib from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

glib-bash-completion 2.88.1-r2

Bash completions for glib

https://developer.gnome.org/glib/

sudo apk add glib-bash-completion
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: glib
  • normalized package name match
  • Matched by: Glib
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glib-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

glib-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-dbg
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: glib
  • 1 dependencies
  • normalized package name match
  • Matched by: Glib
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glib-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

glib-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-dev
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: glib
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Glib
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glib-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

glib-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-doc
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: glib
  • normalized package name match
  • Matched by: Glib
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glib-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

glib-lang 2.88.1-r2

Languages for package glib

https://developer.gnome.org/glib/

sudo apk add glib-lang
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: glib
  • normalized package name match
  • Matched by: Glib
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glib-lang from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

glib-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-static
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: glib
  • 1 dependencies
  • normalized package name match
  • Matched by: Glib
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: glib-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

glib 1.2.10-77.fc44

A library of handy utility functions

http://www.gtk.org/

sudo dnf install glib
  • License: LGPL-2.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: glib
  • 2 dependencies
  • 4 provides
  • normalized package name match
  • Matched by: Glib
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: glib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

glib-devel 1.2.10-77.fc44

Libraries and header files for glib development

http://www.gtk.org/

sudo dnf install glib-devel
  • License: LGPL-2.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: glib
  • 7 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Glib
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: glib-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper92%

libgio-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-0
  • License: LGPL-2.1-or-later
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: glib2
  • 12 dependencies
  • 3 provides
  • installed executable or alias match
  • Matched by: Gio
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libgio-2_0-0 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