The ndctl and daxctl utilities are available in many Linux distribution package repositories. This approach is the easiest to use and maintain, compared with installing ndctl from source code. The daxctl utility is bundled with the ndctl packages.
1) Query the repository to confirm if the ndctl package is available:
Fedora 21 or earlier
yum search ndctl
Fedora 22 or later
dnf repoquery ndctl
2) Install the ndctl utility
Fedora 21 or earlier
yum install ndctl
Fedora 22 or later
dnf install ndctl
The ndctl package is available on CentOS, RHEL, RHEL for SAP HANA 7.0 or later.
1) Query the repository to identify if the ndctl package is available:
yum search ndctl
2) Install the ndctl package
yum install ndctl
The ndctl package is available for OpenSUSE, SUSE Linux Enterprise Server (SLES), and SLES for SAP HANA v12.4 or later.
1) Query the repository to identify if ndctl is delivered:
sudo zypper search ndctl
Example:
$ sudo zypper search ndctl
S | Name | Summary | Type
--+-----------+----------------------------------------------------------------------------+--------
| libndctl6 | Management library for "libnvdimm" subsystem devices (Non-volatile Memory) | package
| ndctl | Manage "libnvdimm" subsystem devices (Non-volatile Memory) | package
2) Install the ndctl package
sudo zypper install ndctl
The ndctl package is available on Ubuntu 18.10 (Cosmic Cuttlefish) or later.
1) Query the repository to identify if the ndctl package is available using either the aptitude, apt-cache, or apt utilities