Introduction to libgudev

The libgudev package contains GObject bindings for libudev.



Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

Package Information




gobject-introspection-1.78.1 (for gir-data, needed for GNOME), GTK-Doc-1.33.2, and umockdev-0.17.18 (for testing)

Installation of libgudev

Install libgudev by running the following commands:

mkdir build &&
cd    build &&

meson setup --prefix=/usr --buildtype=release .. &&

To test the results, issue: ninja test.

Now, as the root user:

ninja install

Command Explanations

--buildtype=release: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

-Dgtk_doc=true: Use this option if GTK-Doc is installed and you wish to build and install the API documentation.


Installed Program: None
Installed Libraries:
Installed Directories: /usr/include/gudev-1.0 and /usr/share/gtk-doc/html/gudev

Short Descriptions

is a GObject-based wrapper library for libudev