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\u2014it 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 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 chunkfs using dnf by running the following command:

sudo dnf -y install chunkfs

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

sudo yum -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

chunkfs Package Contents on CentOS 8

/usr/bin/chunkfs
/usr/bin/unchunkfs
/usr/lib/.build-id
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/2e9ec23797959f6f93a4f8e35728e3a66e5d37
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/f979926774d4f204cab3dd52019fb142518cbf
/usr/share/doc/chunkfs
/usr/share/doc/chunkfs/README
/usr/share/doc/chunkfs/examples
/usr/share/doc/chunkfs/examples/writeoverlay.sh
/usr/share/licenses/chunkfs
/usr/share/licenses/chunkfs/COPYING
/usr/share/man/man1/chunkfs.1.gz
/usr/share/man/man1/unchunkfs.1.gz

References

Summary

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