How To Install ddrescue on Kali Linux
Introduction
In this tutorial we learn how to install ddrescue
on Kali Linux.
What is ddrescue
When your disk has crashed and you try to copy it over to another one, standard Unix tools like cp, cat, and dd will abort on every I/O error, dd_rescue does not. It optimizes copying by using large blocks as long as no errors occur and falls back to smaller blocks. It supports reverse direction copying (to approach a bad spot from the top), sparse copying, preallocating space, splice zerocopy, and bypassing the kernel pagecache with O_DIRECT. dd_rescue provides safe deletion of data by overwriting files (or better partitions/disks) multiple times with fast random numbers. With the ddr_hash plugin, it supports calculating a hash value (such as a sha256sum) or an HMAC during copying.
There are three ways to install ddrescue
on Kali Linux . We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install ddrescue Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install ddrescue
using apt-get
by running the following command:
sudo apt-get -y install ddrescue
Install ddrescue Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ddrescue
using apt
by running the following command:
sudo apt -y install ddrescue
Install ddrescue Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install ddrescue
using aptitude
by running the following command:
sudo aptitude -y install ddrescue
How To Uninstall ddrescue on Kali Linux
To uninstall only the ddrescue
package we can use the following command:
sudo apt-get remove ddrescue
Uninstall ddrescue And Its Dependencies
To uninstall ddrescue
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove ddrescue
Remove ddrescue Configurations and Data
To remove ddrescue
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge ddrescue
Remove ddrescue configuration, data, and all of its dependencies
We can use the following command to remove ddrescue
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ddrescue
References
Summary
In this tutorial we learn how to install ddrescue
using different package management tools like apt, apt-get and aptitude.