How To Install dosfstools on CentOS 8
Introduction
In this tutorial we learn how to install dosfstools
on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install dosfstools.
Install dosfstools 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 dosfstools
using dnf
by running the following command:
sudo dnf -y install dosfstools
Install dosfstools 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 dosfstools
using yum
by running the following command:
sudo yum -y install dosfstools
How To Uninstall dosfstools on CentOS 8
To uninstall only the dosfstools
package we can use the following command:
sudo dnf remove dosfstools
dosfstools Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/deb97f8e49f8a1ffc8fb28318998c94fab384f
/usr/lib/.build-id/71
/usr/lib/.build-id/71/18eb8a621fd6377b2b9e68f219f5ff6c051366
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/7353d15e3b55174ec27417abfcdb68a47e76e9
/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 CentOS 8 using yum and dnf.