How To Install magicrescue on Debian 10

Learn how to install magicrescue on Debian 10 with this tutorial. magicrescue is recover files by looking for magic bytes

Introduction

In this tutorial we learn how to install magicrescue on Debian 10.

What is magicrescue

magicrescue is:

Magic Rescue scans a block device for file types it knows how to recover and calls an external program to extract them. It looks at “magic bytes” (file patterns) in file contents, so it can be used both as an undelete utility and for recovering a corrupted drive or partition. As long as the file data is there, it will find it.

Magic Rescue uses files called ‘recipes’. These files have strings and commands to identify and extract data from devices or forensics images. So, you can write your own recipes. Currently, there are the following recipes: avi, canon-cr2, elf, flac, gpl, gzip, jpeg-exif, jpeg-jfif, mbox, mbox-mozilla-inbox, mbox-mozilla-sent, mp3-id3v1, mp3-id3v2, msoffice, nikon-raw, perl, png, ppm, sqlite and zip.

This package provides magicrescue, dupemap and magicsort commands. magicrescue is a carver and is useful in forensics investigations.

There are three methods to install magicrescue on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install magicrescue Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install magicrescue using apt-get by running the following command:

sudo apt-get -y install magicrescue

Install magicrescue Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install magicrescue using apt by running the following command:

sudo apt -y install magicrescue

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

sudo aptitude -y install magicrescue

How To Uninstall magicrescue on Debian 10

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

sudo apt-get remove magicrescue

Uninstall magicrescue And Its Dependencies

To uninstall magicrescue and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove magicrescue

Remove magicrescue Configurations and Data

To remove magicrescue configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge magicrescue

Remove magicrescue configuration, data, and all of its dependencies

We can use the following command to remove magicrescue configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge magicrescue

Dependencies

magicrescue have the following dependencies:

References

Summary

In this tutorial we learn how to install magicrescue package on Debian 10 using different package management tools: apt, apt-get and aptitude.