How To Install mtools on CentOS 8

mtools is Programs for accessing MS-DOS disks without mounting the disks

Introduction

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

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

Install mtools on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install mtools

Install mtools on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install mtools

How To Uninstall mtools on CentOS 8

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

sudo dnf remove mtools

mtools Package Contents on CentOS 8

/etc/mtools.conf
/usr/bin/amuFormat.sh
/usr/bin/lz
/usr/bin/mattrib
/usr/bin/mbadblocks
/usr/bin/mcat
/usr/bin/mcd
/usr/bin/mcheck
/usr/bin/mclasserase
/usr/bin/mcomp
/usr/bin/mcopy
/usr/bin/mdel
/usr/bin/mdeltree
/usr/bin/mdir
/usr/bin/mdu
/usr/bin/mformat
/usr/bin/minfo
/usr/bin/mkmanifest
/usr/bin/mlabel
/usr/bin/mmd
/usr/bin/mmount
/usr/bin/mmove
/usr/bin/mpartition
/usr/bin/mrd
/usr/bin/mren
/usr/bin/mshortname
/usr/bin/mshowfat
/usr/bin/mtools
/usr/bin/mtoolstest
/usr/bin/mtype
/usr/bin/mxtar
/usr/bin/mzip
/usr/bin/tgz
/usr/bin/uz
/usr/lib/.build-id
/usr/lib/.build-id/69
/usr/lib/.build-id/69/b011edf01ce2960dcf73f683ae26967c46a077
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/fd05e11e40097520caf810910d61c98174e4f8
/usr/share/doc/mtools
/usr/share/doc/mtools/README
/usr/share/doc/mtools/Release.notes
/usr/share/info/mtools.info.gz
/usr/share/licenses/mtools
/usr/share/licenses/mtools/COPYING
/usr/share/man/man1/mattrib.1.gz
/usr/share/man/man1/mbadblocks.1.gz
/usr/share/man/man1/mcat.1.gz
/usr/share/man/man1/mcd.1.gz
/usr/share/man/man1/mclasserase.1.gz
/usr/share/man/man1/mcopy.1.gz
/usr/share/man/man1/mdel.1.gz
/usr/share/man/man1/mdeltree.1.gz
/usr/share/man/man1/mdir.1.gz
/usr/share/man/man1/mdu.1.gz
/usr/share/man/man1/mformat.1.gz
/usr/share/man/man1/minfo.1.gz
/usr/share/man/man1/mkmanifest.1.gz
/usr/share/man/man1/mlabel.1.gz
/usr/share/man/man1/mmd.1.gz
/usr/share/man/man1/mmount.1.gz
/usr/share/man/man1/mmove.1.gz
/usr/share/man/man1/mpartition.1.gz
/usr/share/man/man1/mrd.1.gz
/usr/share/man/man1/mren.1.gz
/usr/share/man/man1/mshortname.1.gz
/usr/share/man/man1/mshowfat.1.gz
/usr/share/man/man1/mtools.1.gz
/usr/share/man/man1/mtoolstest.1.gz
/usr/share/man/man1/mtype.1.gz
/usr/share/man/man1/mzip.1.gz
/usr/share/man/man5/mtools.5.gz
/usr/share/man/man5/mtools.conf.5.gz

References

Summary

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