How To Install testdisk on CentOS 8
Introduction
In this tutorial we learn how to install testdisk
on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install testdisk.
Install testdisk 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 testdisk
using dnf
by running the following command:
sudo dnf -y install testdisk
Install testdisk 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 testdisk
using yum
by running the following command:
sudo yum -y install testdisk
How To Uninstall testdisk on CentOS 8
To uninstall only the testdisk
package we can use the following command:
sudo dnf remove testdisk
testdisk Package Contents on CentOS 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 CentOS 8 using yum and dnf.