How To Install dd_rescue on CentOS 8

dd_rescue is Fault tolerant “dd” utility for rescuing data from bad media

Introduction

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

What is dd_rescue

ddrescue is a utility similar to the system utility “dd” which copies data from a file or block device to another. ddrescue does however not abort on errors in the input file. This makes it suitable for rescuing data from media with errors, e.g. a disk with bad sectors. This package includes dd_rhelp, a wrapper script facilitating data recovery.

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

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

sudo dnf -y install dd_rescue

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

sudo yum -y install dd_rescue

How To Uninstall dd_rescue on CentOS 8

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

sudo dnf remove dd_rescue

dd_rescue Package Contents on CentOS 8

/usr/bin/dd_rescue
/usr/bin/dd_rhelp
/usr/lib/.build-id
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/7826cf84580facb258be6f014079af35fb4247
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/f1a362c523e872a7d88d09b3ea7e55c9b7f45a
/usr/lib/.build-id/82
/usr/lib/.build-id/82/29266df2ee2298d979608060f328f6064285fc
/usr/lib/.build-id/99
/usr/lib/.build-id/99/7fdce239e29bb1ca75a9628bb64a91bd28555b
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/282264d05e43496186ccae6afa8aac0efdbaab
/usr/lib64/libddr_MD5.so
/usr/lib64/libddr_crypt.so
/usr/lib64/libddr_hash.so
/usr/lib64/libddr_lzo.so
/usr/lib64/libddr_null.so
/usr/share/doc/dd_rescue
/usr/share/doc/dd_rescue/COPYING
/usr/share/doc/dd_rescue/FAQ.dd_rhelp
/usr/share/doc/dd_rescue/README
/usr/share/doc/dd_rescue/README.dd_rhelp
/usr/share/man/man1/dd_rescue.1.gz
/usr/share/man/man1/ddr_crypt.1.gz
/usr/share/man/man1/ddr_lzo.1.gz

References

Summary

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