How To Install ndctl on CentOS 8

ndctl is Manage “libnvdimm” subsystem devices (Non-volatile Memory)

Introduction

In this tutorial we learn how to install ndctl on CentOS 8.

What is ndctl

Utility library for managing the “libnvdimm” subsystem. The “libnvdimm” subsystem defines a kernel device model and control message interface for platform NVDIMM resources like those defined by the ACPI 6+ NFIT (NVDIMM Firmware Interface Table).

We can use yum or dnf to install ndctl on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install ndctl.

Install ndctl on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install ndctl using dnf by running the following command:

sudo dnf -y install ndctl

Install ndctl on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install ndctl using yum by running the following command:

sudo yum -y install ndctl

How To Uninstall ndctl on CentOS 8

To uninstall only the ndctl package we can use the following command:

sudo dnf remove ndctl

ndctl Package Contents on CentOS 8

/etc/modprobe.d/nvdimm-security.conf
/etc/ndctl/keys/keys.readme
/etc/ndctl/monitor.conf
/usr/bin/ndctl
/usr/lib/.build-id
/usr/lib/.build-id/64
/usr/lib/.build-id/64/7d9c7f6d5e0b60120764295489c09d49b469e7
/usr/lib/systemd/system/ndctl-monitor.service
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/ndctl
/usr/share/licenses/ndctl
/usr/share/licenses/ndctl/CC0-1.0
/usr/share/licenses/ndctl/GPL-2.0
/usr/share/licenses/ndctl/MIT
/usr/share/man/man1/ndctl-activate-firmware.1.gz
/usr/share/man/man1/ndctl-check-labels.1.gz
/usr/share/man/man1/ndctl-check-namespace.1.gz
/usr/share/man/man1/ndctl-clear-errors.1.gz
/usr/share/man/man1/ndctl-create-namespace.1.gz
/usr/share/man/man1/ndctl-destroy-namespace.1.gz
/usr/share/man/man1/ndctl-disable-dimm.1.gz
/usr/share/man/man1/ndctl-disable-namespace.1.gz
/usr/share/man/man1/ndctl-disable-region.1.gz
/usr/share/man/man1/ndctl-enable-dimm.1.gz
/usr/share/man/man1/ndctl-enable-namespace.1.gz
/usr/share/man/man1/ndctl-enable-region.1.gz
/usr/share/man/man1/ndctl-freeze-security.1.gz
/usr/share/man/man1/ndctl-init-labels.1.gz
/usr/share/man/man1/ndctl-inject-error.1.gz
/usr/share/man/man1/ndctl-inject-smart.1.gz
/usr/share/man/man1/ndctl-list.1.gz
/usr/share/man/man1/ndctl-load-keys.1.gz
/usr/share/man/man1/ndctl-monitor.1.gz
/usr/share/man/man1/ndctl-read-infoblock.1.gz
/usr/share/man/man1/ndctl-read-labels.1.gz
/usr/share/man/man1/ndctl-remove-passphrase.1.gz
/usr/share/man/man1/ndctl-sanitize-dimm.1.gz
/usr/share/man/man1/ndctl-setup-passphrase.1.gz
/usr/share/man/man1/ndctl-start-scrub.1.gz
/usr/share/man/man1/ndctl-update-firmware.1.gz
/usr/share/man/man1/ndctl-update-passphrase.1.gz
/usr/share/man/man1/ndctl-wait-overwrite.1.gz
/usr/share/man/man1/ndctl-wait-scrub.1.gz
/usr/share/man/man1/ndctl-write-infoblock.1.gz
/usr/share/man/man1/ndctl-write-labels.1.gz
/usr/share/man/man1/ndctl-zero-labels.1.gz
/usr/share/man/man1/ndctl.1.gz

References

Summary

In this tutorial we learn how to install ndctl on CentOS 8 using yum and dnf.