How To Install squashfs-tools on CentOS 8

squashfs-tools is Utility for the creation of squashfs filesystems Utility for the creation of squashfs filesystems

Introduction

In this tutorial we learn how to install squashfs-tools on CentOS 8.

What is squashfs-tools

Squashfs is a highly compressed read-only filesystem for Linux. This package contains the utilities for manipulating squashfs filesystems. squashfs-tools 4.3 20.el8 x86_64 165 k squashfs-tools-4.3-20.el8.src.rpm baseos Utility for the creation of squashfs filesystems http GPLv2+ Squashfs is a highly compressed read-only filesystem for Linux. This package contains the utilities for manipulating squashfs filesystems.

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

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

sudo dnf -y install squashfs-tools

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

sudo yum -y install squashfs-tools

How To Uninstall squashfs-tools on CentOS 8

To uninstall only the squashfs-tools package we can use the following command:

sudo dnf remove squashfs-tools

squashfs-tools Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/a819517c4e8b986cf77aa429b473ca3144549c
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/215142eb041d9d5c5bebe2931b736ff48d0d9d
/usr/sbin/mksquashfs
/usr/sbin/unsquashfs
/usr/share/doc/squashfs-tools
/usr/share/doc/squashfs-tools/ACKNOWLEDGEMENTS
/usr/share/doc/squashfs-tools/CHANGES
/usr/share/doc/squashfs-tools/COPYING
/usr/share/doc/squashfs-tools/DONATIONS
/usr/share/doc/squashfs-tools/PERFORMANCE.README
/usr/share/doc/squashfs-tools/README
/usr/share/doc/squashfs-tools/README-4.3
/usr/share/doc/squashfs-tools/pseudo-file.example
/usr/share/man/man1/mksquashfs.1.gz
/usr/share/man/man1/unsquashfs.1.gz

References

Summary

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