Introduction to libnvme

The libnvme package is a library which provides type definitions for NVMe specification structures, enumerations, and bit fields, helper functions to construct, dispatch, and decode commands and payloads, and utilities to connect, scan, and manage NVMe devices on a Linux system.

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

Package Information

libnvme Dependencies


dbus-1.14.8, JSON-C-0.17, keyutils-1.6.1, and SWIG-4.1.1

Installation of libnvme

Install libnvme by running the following commands:

mkdir build &&
cd    build &&

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

To run the tests, issue: ninja test.

Now, as the root user:

ninja install


Installed Programs: None
Installed Library: and
Installed Directories: /usr/include/nvme and /usr/lib/python3.11/site-packages/libnvme

Short Descriptions

contains functions used to handle operations relating to NVMe devices.