How To Install mt-st on Rocky Linux 8

In this tutorial we learn how to install mt-st on Rocky Linux 8. mt-st is Tool for controlling tape drives

Introduction

In this tutorial we learn how to install mt-st on Rocky Linux 8.

What is mt-st

The mt-st package contains the mt and st tape drive management programs. Mt (for magnetic tape drives) and st (for SCSI tape devices) can control rewinding, ejecting, skipping files and blocks and more. Install mt-st if you need a tool to manage tape drives.

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

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

sudo dnf -y install mt-st

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

sudo yum -y install mt-st

How To Uninstall mt-st on Rocky Linux 8

To uninstall only the mt-st package we can use the following command:

sudo dnf remove mt-st

mt-st Package Contents on Rocky Linux 8

/usr/bin/mt
/usr/lib/.build-id
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/c1eadb66d0ddfac26b8d3069f7454b8b3f7082
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/ade0698e65b9d2c733a4477a870b57394e82cf
/usr/lib/systemd/system/stinit.service
/usr/sbin/stinit
/usr/share/doc/mt-st
/usr/share/doc/mt-st/COPYING
/usr/share/doc/mt-st/README
/usr/share/doc/mt-st/README.stinit
/usr/share/doc/mt-st/mt-st-1.1.lsm
/usr/share/doc/mt-st/stinit.def.examples
/usr/share/man/man1/mt.1.gz
/usr/share/man/man8/stinit.8.gz

References

Summary

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