How To Install mtools on CentOS 7

In this tutorial we learn how to install mtools on CentOS 7. mtools is Programs for accessing MS-DOS disks without mounting the disks

Introduction

In this tutorial we learn how to install mtools on CentOS 7.

What is mtools

Mtools is a collection of utilities for accessing MS-DOS files. Mtools allow you to read, write and move around MS-DOS filesystem files (normally on MS-DOS floppy disks). Mtools supports Windows95 style long file names, OS/2 XDF disks, and 2m disks Mtools should be installed if you need to use MS-DOS disks

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

Install mtools on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install mtools

Install mtools on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install mtools

How To Uninstall mtools on CentOS 7

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

sudo dnf remove mtools

References

Summary

In this tutorial we learn how to install mtools on CentOS 7 using yum and dnf.