glib

Install command:
brew install glib

Formerly known as: glib-utils

Core application library for C

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

License: LGPL-2.1-or-later

Development: Pull requests

Formula JSON API: /api/formula/glib.json

Formula code: glib.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.90.1

Patches:

https://github.com/Homebrew/homebrew-core/blob/main/Patches/glib/hardcoded-paths.diff

Depends on:

pcre2 10.49 Perl compatible regular expressions library with a new API
gettext 1.0 GNU internationalization (i18n) and localization (l10n) library

Depends on when building from source:

bison 3.8.2 Parser generator
gettext 1.0 GNU internationalization (i18n) and localization (l10n) library
meson 1.12.1 Fast and user friendly build system
ninja 1.13.2 Small build system for use with gyp or CMake
pkgconf 3.0.10 Package compiler and linker metadata toolkit
python-setuptools 84.2.1 Easily download, build, install, upgrade, and uninstall Python packages
python@3.15 3.15.2 Interpreted, interactive, object-oriented programming language

Uses from macOS: flex (build), libffi, python

Binaries: 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

GitHub Packages downloads:

Last 30 days1,427,824
Downloads92,471,586
Analytics install events (30 days)133,452
Downloads / install events (30 days)10.7×

Source: GitHub Packages, fetched 2026-11-14T00:20:06Z. Analytics dates: 2026-10-15 to 2026-11-14. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs133,412423,7132,314,441
Installs (--HEAD)40106526
Installs on Request16,52551,969340,268
Installs on Request (--HEAD)3494477
Build Errors1,265