How To Install xfsdump on CentOS 8

xfsdump is Administrative utilities for the XFS filesystem

Introduction

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

What is xfsdump

The xfsdump package contains xfsdump, xfsrestore and a number of other utilities for administering XFS filesystems. xfsdump examines files in a filesystem, determines which need to be backed up, and copies those files to a specified disk, tape or other storage medium. It uses XFS-specific directives for optimizing the dump of an XFS filesystem, and also knows how to backup XFS extended attributes. Backups created with xfsdump are “endian safe” and can thus be transfered between Linux machines of different architectures and also between IRIX machines. xfsrestore performs the inverse function of xfsdump; it can restore a full backup of a filesystem. Subsequent incremental backups can then be layered on top of the full backup. Single files and directory subtrees may be restored from full or partial backups.

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

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

sudo dnf -y install xfsdump

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

sudo yum -y install xfsdump

How To Uninstall xfsdump on CentOS 8

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

sudo dnf remove xfsdump

xfsdump Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/248ace57eb393622ab6bace409bfa8c2f026ea
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/68c360a12b5bdee3803edeaa9c07f4ae01be4f
/usr/lib/.build-id/48
/usr/lib/.build-id/48/295575608fb261e1a4e4e2990bc5941e36c6ec
/usr/sbin/xfsdump
/usr/sbin/xfsinvutil
/usr/sbin/xfsrestore
/usr/share/doc/xfsdump
/usr/share/doc/xfsdump/CHANGES
/usr/share/doc/xfsdump/COPYING
/usr/share/doc/xfsdump/README
/usr/share/doc/xfsdump/README.xfsdump
/usr/share/doc/xfsdump/xfsdump_ts.txt
/usr/share/locale/de/LC_MESSAGES/xfsdump.mo
/usr/share/locale/pl/LC_MESSAGES/xfsdump.mo
/usr/share/man/man8/xfsdump.8.gz
/usr/share/man/man8/xfsinvutil.8.gz
/usr/share/man/man8/xfsrestore.8.gz
/var/lib/xfsdump/inventory

References

Summary

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