How To Install perl-Email-MIME-ContentType on AlmaLinux 8

In this tutorial we learn how to install perl-Email-MIME-ContentType in AlmaLinux 8. perl-Email-MIME-ContentType is Parse a MIME Content-Type Header

Introduction

In this tutorial we learn how to install perl-Email-MIME-ContentType on AlmaLinux 8.

What is perl-Email-MIME-ContentType

This module is responsible for parsing email content type headers according to section 5.1 of RFC 2045. It returns a hash with entries for the type, the subtype, and a hash of attributes. For backward compatibility with a really unfortunate misunderstanding of RFC 2045 by the early implementors of this module, ‘discrete’ and ‘composite’ are also present in the returned hashref, with the values of ’type’ and ‘subtype’ respectively.

We can use yum or dnf to install perl-Email-MIME-ContentType on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Email-MIME-ContentType.

Install perl-Email-MIME-ContentType on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-Email-MIME-ContentType using dnf by running the following command:

sudo dnf -y install perl-Email-MIME-ContentType

Install perl-Email-MIME-ContentType on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Email-MIME-ContentType using yum by running the following command:

sudo yum -y install perl-Email-MIME-ContentType

How To Uninstall perl-Email-MIME-ContentType on AlmaLinux 8

To uninstall only the perl-Email-MIME-ContentType package we can use the following command:

sudo dnf remove perl-Email-MIME-ContentType

References

Summary

In this tutorial we learn how to install perl-Email-MIME-ContentType on AlmaLinux 8 using yum and dnf.