How To Install testdisk on Rocky Linux 8

In this tutorial we learn how to install testdisk on Rocky Linux 8. testdisk is Tool to check and undelete partition, PhotoRec recovers lost files

Introduction

In this tutorial we learn how to install testdisk on Rocky Linux 8.

What is testdisk

Tool to check and undelete partition. Works with FAT12, FAT16, FAT32, NTFS, ext2, ext3, ext4, btrfs, BeFS, CramFS, HFS, JFS, Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS. PhotoRec is a signature based file recovery utility. It handles more than 440 file formats including JPG, MSOffice, OpenOffice documents.

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

Install testdisk on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install testdisk

Install testdisk on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install testdisk

How To Uninstall testdisk on Rocky Linux 8

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

sudo dnf remove testdisk

testdisk Package Contents on Rocky Linux 8

/usr/bin/fidentify
/usr/bin/photorec
/usr/bin/testdisk
/usr/lib/.build-id
/usr/lib/.build-id/22
/usr/lib/.build-id/22/10d094b6c3db0ec2fadb84b0f5e69bfc0d57bc
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/12476be45169dc3a9facb414e84e9bd2458941
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/5cac22b765a1a5d44cc3d3609df7cb76784849
/usr/share/doc/testdisk
/usr/share/doc/testdisk/AUTHORS
/usr/share/doc/testdisk/ChangeLog
/usr/share/doc/testdisk/NEWS
/usr/share/doc/testdisk/README.md
/usr/share/doc/testdisk/THANKS
/usr/share/doc/testdisk/documentation.html
/usr/share/licenses/testdisk
/usr/share/licenses/testdisk/COPYING
/usr/share/man/man8/fidentify.8.gz
/usr/share/man/man8/photorec.8.gz
/usr/share/man/man8/testdisk.8.gz
/usr/share/man/zh_CN/man8/fidentify.8.gz
/usr/share/man/zh_CN/man8/photorec.8.gz
/usr/share/man/zh_CN/man8/testdisk.8.gz

References

Summary

In this tutorial we learn how to install testdisk on Rocky Linux 8 using yum and dnf.