How To Install mailcap on Kali Linux
Introduction
In this tutorial we learn how to install mailcap on Kali Linux.
What is mailcap
mailcap is:
The mailcap system associates media types with programs that can handle them, using system and user configuration files. A file’s media type is determined by its extension or by running the “file” command if available.
Other packages register their programs as viewers/editors/composers/etc by placing mailcap entry files or FreeDesktop menu entries in predetermined directories monitored by this package’s dpkg triggers.
This package provides a “run-mailcap” program to open arbitrary files, and in addition the “see”, “edit”, “compose”, and “print” aliases to display, alter, create, and print (respectively).
This package also provides the “debian-view” utility to handle Debian packages interactively.
There are three methods to install mailcap 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 mailcap Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install mailcap using apt-get by running the following command:
sudo apt-get -y install mailcapInstall mailcap Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install mailcap using apt by running the following command:
sudo apt -y install mailcapInstall mailcap 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 updateAfter updating apt database, We can install mailcap using aptitude by running the following command:
sudo aptitude -y install mailcapHow To Uninstall mailcap on Kali Linux
To uninstall only the mailcap package we can use the following command:
sudo apt-get remove mailcapUninstall mailcap And Its Dependencies
To uninstall mailcap and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove mailcapRemove mailcap Configurations and Data
To remove mailcap configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge mailcapRemove mailcap configuration, data, and all of its dependencies
We can use the following command to remove mailcap configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge mailcapDependencies
mailcap have the following dependencies:
References
Summary
In this tutorial we learn how to install mailcap package on Kali Linux using different package management tools: apt, apt-get and aptitude.