How To Install libmime-types-perl on Debian 11

In this tutorial we learn how to install libmime-types-perl on Debian 11. libmime-types-perl is Perl extension for determining MIME types and Transfer Encoding

Introduction

In this tutorial we learn how to install libmime-types-perl on Debian 11.

What is libmime-types-perl

libmime-types-perl is:

MIME::Types provides a start for a more detailed data-structure to keep knowledge about various data types are defined by MIME. Some basic treatments with mime types are implemented.

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

Install libmime-types-perl Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libmime-types-perl

Install libmime-types-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libmime-types-perl using apt by running the following command:

sudo apt -y install libmime-types-perl

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

sudo aptitude -y install libmime-types-perl

How To Uninstall libmime-types-perl on Debian 11

To uninstall only the libmime-types-perl package we can use the following command:

sudo apt-get remove libmime-types-perl

Uninstall libmime-types-perl And Its Dependencies

To uninstall libmime-types-perl and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove libmime-types-perl

Remove libmime-types-perl Configurations and Data

To remove libmime-types-perl configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge libmime-types-perl

Remove libmime-types-perl configuration, data, and all of its dependencies

We can use the following command to remove libmime-types-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libmime-types-perl

Dependencies

libmime-types-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libmime-types-perl package on Debian 11 using different package management tools: apt, apt-get and aptitude.