How To Install chunkfs on CentOS 8

In this tutorial we learn how to install chunkfs on CentOS 8. chunkfs is FUSE based filesystem that allows you to mount an arbitrary file or block device

Introduction

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

What is chunkfs

ChunkFS is a FUSE based filesystem that allows you to mount an arbitrary file or block device as a directory tree of files that each represent a chunk of user-specified size of the mounted file. The chunk size is global per mount, but at mount time any value can be specified. (If the file size isn’t a multiple of the specified chunk size, the last file in the tree simply will be smaller than the chunk size.) Only read access is supported at the moment. UnChunkFS is the inversion of ChunkFS—it allows you to mount a ChunkFS tree (or a copy of it, of course), and gives you a single file named image that has the same contents as the file or device you created the tree from by mounting it as a ChunkFS.

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

Install chunkfs on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install chunkfs

Install chunkfs on CentOS 8 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 chunkfs using dnf by running the following command:

sudo dnf -y install chunkfs

How To Uninstall chunkfs on CentOS 8

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

sudo dnf remove chunkfs

References

Summary

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