How To Install ext4magic on Debian 12
Introduction
In this tutorial we learn how to install ext4magic
on Debian 12.
What is ext4magic
ext4magic is:
ext4magic is a file carver (or file carving). It can be used when recovering from disasters or in digital forensics activities.
The deletion of files in ext3/4 filesystems can not be easily reversed. Zero out of the block references in the inodes makes that impossible. Experiences with other programs have proved that is possible restore sufficient information for a recover of many data files, directly from the filesystem journal.
ext4magic can extract the information from the journal and restore files in an entire directory tree, if the information in the journal are sufficient.
This tool can recover the most file types, with original filename, owner and group, file mode bits and also the old atime/mtime stamps.
There are three methods to install ext4magic
on Debian 12. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install ext4magic Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install ext4magic
using apt-get
by running the following command:
sudo apt-get -y install ext4magic
Install ext4magic Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install ext4magic
using apt
by running the following command:
sudo apt -y install ext4magic
Install ext4magic 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install ext4magic
using aptitude
by running the following command:
sudo aptitude -y install ext4magic
How To Uninstall ext4magic on Debian 12
To uninstall only the ext4magic
package we can use the following command:
sudo apt-get remove ext4magic
Uninstall ext4magic And Its Dependencies
To uninstall ext4magic
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove ext4magic
Remove ext4magic Configurations and Data
To remove ext4magic
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge ext4magic
Remove ext4magic configuration, data, and all of its dependencies
We can use the following command to remove ext4magic
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge ext4magic
Dependencies
ext4magic have the following dependencies:
References
Summary
In this tutorial we learn how to install ext4magic
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.