How To Install mat2 on Kali Linux

In this tutorial we learn how to install mat2 on Kali Linux. mat2 is Metadata anonymisation toolkit v2

Introduction

In this tutorial we learn how to install mat2 on Kali Linux.

What is mat2

mat2 is:

Metadata consist of information that characterizes data. Metadata are used to provide documentation for data products. In essence, metadata answer who, what, when, where, why, and how about every facet of the data that are being documented.

Metadata within a file can tell a lot about you. Cameras record data about when a picture was taken and what camera was used. Office documents like PDF or Office automatically adds author and company information to documents and spreadsheets.

Maybe you don’t want to disclose those information.

mat2 only removes metadata from your files, it does not anonymise their content, nor can it handle watermarking, steganography, or any too custom metadata field/system.

If you really want to be anonymous, use file formats that do not contain any metadata, or better: use plain-text.

Formats supported to some extent are: - Audio Video Interleave (.avi) - Electronic Publication (.epub) - Free Lossless Audio Codec (.flac) - Graphics Interchange Format (.gif) - Hypertext Markup Language (.html, .xhtml) - Portable Network Graphics (PNG) - JPEG (.jpeg, .jpg, …) - MPEG Audio (.mp3, .mp2, .mp1, .mpa) - MPEG-4 (.mp4) - Office Openxml (.docx, .pptx, .xlsx, …) - Ogg Vorbis (.ogg) - Open Document (.odt, .odx, .ods, …) - Portable Document Fileformat (.pdf) - Portable Pixmap Format (.ppm) - Scalable Vector Graphics (.svg) - Tape ARchive (.tar, .tar.bz2, .tar.gz, .tar.zx) - Torrent (.torrent) - Waveform Audio (.wav) - Windows Media Video (.wmv) - ZIP (.zip)

mat2 provides a command line tool, and graphical user interfaces via a service menu for Dolphin, the default file manager of KDE, and an extension for Nautilus, the default file manager of GNOME.

There are three methods to install mat2 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 mat2 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mat2

Install mat2 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mat2

Install mat2 Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux 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 mat2 using aptitude by running the following command:

sudo aptitude -y install mat2

How To Uninstall mat2 on Kali Linux

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

sudo apt-get remove mat2

Uninstall mat2 And Its Dependencies

To uninstall mat2 and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove mat2

Remove mat2 Configurations and Data

To remove mat2 configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge mat2

Remove mat2 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mat2

Dependencies

mat2 have the following dependencies:

References

Summary

In this tutorial we learn how to install mat2 package on Kali Linux using different package management tools: apt, apt-get and aptitude.