How To Install ndctl on Rocky Linux 8

In this tutorial we learn how to install ndctl on Rocky Linux 8. ndctl is Manage “libnvdimm” subsystem devices (Non-volatile Memory)

Introduction

In this tutorial we learn how to install ndctl on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install ndctl.

Install ndctl on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install ndctl

Install ndctl on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 Rocky Linux 8

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

sudo dnf remove ndctl

ndctl Package Contents on Rocky Linux 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/bb
/usr/lib/.build-id/bb/8e06db765f567848a3f9181ce7c83954b0483a
/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 Rocky Linux 8 using yum and dnf.