How To Install dosfstools on Rocky Linux 8

In this tutorial we learn how to install dosfstools on Rocky Linux 8. dosfstools is Utilities for making and checking MS-DOS FAT filesystems on Linux

Introduction

In this tutorial we learn how to install dosfstools on Rocky Linux 8.

What is dosfstools

The dosfstools package includes the mkdosfs and dosfsck utilities, which respectively make and check MS-DOS FAT filesystems on hard drives or on floppies.

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

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

sudo dnf -y install dosfstools

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

sudo yum -y install dosfstools

How To Uninstall dosfstools on Rocky Linux 8

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

sudo dnf remove dosfstools

dosfstools Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/29
/usr/lib/.build-id/29/de0a89ae7ed55e00da555297f5e9e68c145542
/usr/lib/.build-id/73
/usr/lib/.build-id/73/7c9731f1ff1c391f7b4e882c50e4b240af3fd6
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/d2d85371dc94ebf1ea4b0e8e552ac7fc41d195
/usr/sbin/dosfsck
/usr/sbin/dosfslabel
/usr/sbin/fatlabel
/usr/sbin/fsck.fat
/usr/sbin/fsck.msdos
/usr/sbin/fsck.vfat
/usr/sbin/mkdosfs
/usr/sbin/mkfs.fat
/usr/sbin/mkfs.msdos
/usr/sbin/mkfs.vfat
/usr/share/doc/dosfstools
/usr/share/doc/dosfstools/ANNOUNCE.mkdosfs
/usr/share/doc/dosfstools/COPYING
/usr/share/doc/dosfstools/ChangeLog
/usr/share/doc/dosfstools/ChangeLog.dosfsck
/usr/share/doc/dosfstools/ChangeLog.dosfstools-2.x
/usr/share/doc/dosfstools/ChangeLog.mkdosfs
/usr/share/doc/dosfstools/README.dosfsck
/usr/share/doc/dosfstools/README.dosfstools-2.x
/usr/share/doc/dosfstools/README.mkdosfs
/usr/share/doc/dosfstools/TODO.dosfstools-2.x
/usr/share/man/man8/dosfsck.8.gz
/usr/share/man/man8/dosfslabel.8.gz
/usr/share/man/man8/fatlabel.8.gz
/usr/share/man/man8/fsck.fat.8.gz
/usr/share/man/man8/fsck.msdos.8.gz
/usr/share/man/man8/fsck.vfat.8.gz
/usr/share/man/man8/mkdosfs.8.gz
/usr/share/man/man8/mkfs.fat.8.gz
/usr/share/man/man8/mkfs.msdos.8.gz
/usr/share/man/man8/mkfs.vfat.8.gz

References

Summary

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