Building nvme‐cli - linux-nvme/nvme-cli GitHub Wiki

Minimal build

It's possible to build nvme-cli without using meson (Python based). muon is an implementation of the meson build system in c99 with minimal dependencies. The build.sh script provides the necessary steps for a minimal build:

  • make
  • gcc
  • git
$ build.sh -m muon

For some older distributions additional packages need to be installed, see sections below

Fedora

# dnf install json-c-devel openssl-devel keyutils-libs-devel dbus-devel python3-devel

CentOS stream 9 (just copied the installation from CentOS 8)

$ dnf config-manager --set-enabled powertools
$ dnf search glibc
$ dnf provides */libc.a
$ dnf install glibc-static

Ubuntu 24.04

Dependencies (if using meson)

$ sudo apt install gcc make git
$ sudo pip3 install meson 
$ sudo apt-get install python3 python3-pip python3-setuptools python3-wheel ninja-build

$ sudo apt install cmake swig libjson-c-dev libssl-dev libkeyutils-dev pkg-config

SUSE Linux Enterprise 15 Service Pack 7

# zypper install  git meson gcc libjson-c-devel keyutils-devel openssl-devel

For EOL distributions below are not supported for the muon minimal build

CentOS 8 (EOL so unsupported)

$ dnf config-manager --set-enabled powertools
$ dnf search glibc
$ dnf provides */libc.a
$ dnf install glibc-static

CentOS 7 (EOL so unsupported)

$ yum install glibc-static