How To Install e2fsprogs on CentOS 7

In this tutorial we learn how to install e2fsprogs on CentOS 7. e2fsprogs is Utilities for managing ext2, ext3, and ext4 filesystems

Introduction

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

What is e2fsprogs

The e2fsprogs package contains a number of utilities for creating, checking, modifying, and correcting any inconsistencies in second, third and fourth extended (ext2/ext3/ext4) filesystems. E2fsprogs contains e2fsck (used to repair filesystem inconsistencies after an unclean shutdown), mke2fs (used to initialize a partition to contain an empty ext2 filesystem), debugfs (used to examine the internal structure of a filesystem, to manually repair a corrupted filesystem, or to create test cases for e2fsck), tune2fs (used to modify filesystem parameters), and most of the other core ext2fs filesystem utilities. You should install the e2fsprogs package if you need to manage the performance of an ext2, ext3, or ext4 filesystem.

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

Install e2fsprogs on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install e2fsprogs

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

sudo dnf -y install e2fsprogs

How To Uninstall e2fsprogs on CentOS 7

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

sudo dnf remove e2fsprogs

References

Summary

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