Introduction to libnl

The libnl suite is a collection of libraries providing APIs to netlink protocol based Linux kernel interfaces.

This package is known to build and work properly using an LFS-7.7 platform.

Package Information

Optional Download

libnl Dependencies


Check-0.9.14 (for tests)

User Notes:

Installation of libnl

Install libnl by running the following commands:

./configure --prefix=/usr     \
            --sysconfdir=/etc \
            --disable-static  &&

To test the results, issue: make check.

Now, as the root user:

make install

If you wish to install the API docummentation, as the root user:

mkdir -vp /usr/share/doc/libnl-3.2.25 &&
tar -xf ../libnl-doc-3.2.25.tar.gz --strip-components=1 --no-same-owner \
        -C /usr/share/doc/libnl-3.2.25

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

--disable-cli: Use this parameter if you don't want to install cli tools provided by the package.


Installed Programs: genl-ctrl-list, nl-class-add, nl-class-delete, nl-classid-lookup, nl-class-list, nl-cls-add, nl-cls-delete, nl-cls-list, nl-link-list, nl-pktloc-lookup, nl-qdisc-add, nl-qdisc-delete, and nl-qdisc-list
Installed Libraries:,,,,,, and cli modules under /usr/lib/libnl/cli tree
Installed Directories: /etc/libnl, /usr/include/libnl3, /usr/lib/libnl, and /usr/share/doc/libnl-3.2.25

Short Descriptions


These libraries contain API functions used to access Netlink interfaces in Linux kernel.

Last updated on 2015-02-19 19:11:38 -0800