Udev-Installed LFS Version

Introduction to Udev



If you installed LFS from SVN-20120719, LFS-7.2, or later, use udev-extras (from systemd) instead of this page.

Udev was indeed installed in LFS and there is no reason to reinstall it unless you are going to install a package such as UPower. This installation of Udev enables extra features which includes gudev, a requirement for UPower and optionally used by other packages.

Unlike any other package in the BLFS book, there is no set version of Udev specified to download. Several version updates to LFS and none to BLFS means there are probably many different versions of Udev on the platforms that BLFS is being built upon. Therefore, you should download and use the version of Udev your computer currently uses. The BLFS team has no experience updating (or reverting to an older version) the Udev package “on the fly.” To discover the version of Udev your computer currently uses, issue /sbin/udevadm --version.

You should look at the LFS instructions for the version you used, to check that you are using the correct testfiles (for some versions, this was a separate tarball, extracted in the udev directory with --strip-components=1) and to compare the configure options you are about to use against those which you used to build the version you are running (sometimes, the options change).

This package is known to build and work properly using an LFS-7.0 platform. (Using Udev-173)

This package is known to build and work properly using an LFS-7.1 platform. (Using Udev-182)

Package Information

Udev Dependencies


acl-2.2.52, GLib-2.36.4, Gperf-3.0.4, pciutils-3.2.0, and usbutils-007



User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/udev

Installation of Udev

Install Udev by running the following commands:

./configure --prefix=/usr                  \
            --sysconfdir=/etc              \
            --sbindir=/sbin                \
            --with-rootlibdir=/lib         \
            --libexecdir=/lib              \
            --with-systemdsystemunitdir=no \
            --disable-introspection        \
            --docdir=/usr/share/doc/<udev-Installed LFS Version> &&

To test the results, issue: make check.

Now, as the root user:

make install

Command Explanations

--enable-gtk-doc: Use this parameter if GTK-Doc is installed and you wish to rebuild and install the API documentation.

--disable-introspection: Remove this option if the optional dependency gobject-introspection is installed.

--with-systemdsystemunitdir=no: systemd is not used in (B)LFS.


A list of the installed files, along with their short descriptions can be found at ../../../../lfs/view/7.4/chapter06/udev.html#contents-udev.

The following is some additional content information.

Installed Programs: findkeyboards, firmware, input_id, keyboard-force-release.sh, keymap, modem-modeswitch, pci-db, udev-acl, usb-db, and v4l_id
Installed Library: libgudev-1.0.so
Installed Directories: /lib/udev/keymaps/force-release, /usr/{include/gudev-1.0/gudev,share/{doc/udev-Installed LFS Version, gtk-doc/html/gudev}}

Short Descriptions


configures computer model specific key mappings.


is a GObject-based wrapper library for libudev.

Last updated on 2013-02-11 10:51:17 -0800