How To Install ndctl on Fedora 34

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

Introduction

In this tutorial we learn how to install ndctl on Fedora 34.

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install ndctl.

Install ndctl on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34

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

sudo dnf remove ndctl

ndctl Package Contents on Fedora 34

/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/6d
/usr/lib/.build-id/6d/598f3c91c5f3072b4a2617a073736436072c9f
/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 Fedora 34 using yum and dnf.