The ndctl utility is available in many Linux distribution package repositories. This approach is the easiest to implement and maintain, compared with installing ndctl from source code.
1) Query the repository to identify if ndctl is delivered:
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 and RHEL 7.0 or later.
1) Query the repository to identify if ndctl is delivered:
yum search ndctl
2) Install the ndctl package
$ yum install ndctl
1) Query the repository to identify if ndctl is delivered:
$ zypper search ndctl
2) Install the ndctl package
$ zypper install ndctl
The ndctl package is available on Ubuntu 18.10 (Cosmic Cuttlefish) or later.
1) Query the repository to identify if ndctl is delivered using either the aptitude, apt-cache, or apt utilities