How To Install libiscsi-utils on Rocky Linux 8

In this tutorial we learn how to install libiscsi-utils on Rocky Linux 8. libiscsi-utils is iSCSI Client Utilities

Introduction

In this tutorial we learn how to install libiscsi-utils on Rocky Linux 8.

What is libiscsi-utils

The libiscsi-utils package provides a set of assorted utilities to connect to iSCSI servers without having to set up the Linux iSCSI initiator.

We can use yum or dnf to install libiscsi-utils on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libiscsi-utils.

Install libiscsi-utils 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 libiscsi-utils using dnf by running the following command:

sudo dnf -y install libiscsi-utils

Install libiscsi-utils 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 libiscsi-utils using yum by running the following command:

sudo yum -y install libiscsi-utils

How To Uninstall libiscsi-utils on Rocky Linux 8

To uninstall only the libiscsi-utils package we can use the following command:

sudo dnf remove libiscsi-utils

libiscsi-utils Package Contents on Rocky Linux 8

/usr/bin/iscsi-inq
/usr/bin/iscsi-ls
/usr/bin/iscsi-perf
/usr/bin/iscsi-readcapacity16
/usr/bin/iscsi-swp
/usr/bin/iscsi-test-cu
/usr/lib/.build-id
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/6b11f86f213f4fe15bfcf54cffc5ae5ef12168
/usr/lib/.build-id/38
/usr/lib/.build-id/38/c3448975ab5fe1a8d5e99491ce15e155d0bb11
/usr/lib/.build-id/48
/usr/lib/.build-id/48/076d916a1fa0120ec3eb4d42e1017f0157aeac
/usr/lib/.build-id/60
/usr/lib/.build-id/60/512c26d1ffa5b76af7ad2ee253f8bd6e533d07
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/eb8506461570b4d304076cbd1f33a3c6a49be5
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/687d7f3b353aad2b1f6308b0c6f1468b07ae91
/usr/share/licenses/libiscsi-utils
/usr/share/licenses/libiscsi-utils/LICENCE-GPL-2.txt
/usr/share/man/man1/iscsi-inq.1.gz
/usr/share/man/man1/iscsi-ls.1.gz
/usr/share/man/man1/iscsi-swp.1.gz
/usr/share/man/man1/iscsi-test-cu.1.gz

References

Summary

In this tutorial we learn how to install libiscsi-utils on Rocky Linux 8 using yum and dnf.