How To Install rubygem-mime-types-data on AlmaLinux 8

In this tutorial we learn how to install rubygem-mime-types-data in AlmaLinux 8. rubygem-mime-types-data is A registry for information about MIME media type definitions

Introduction

In this tutorial we learn how to install rubygem-mime-types-data on AlmaLinux 8.

What is rubygem-mime-types-data

mime-types-data provides a registry for information about MIME media type definitions. It can be used with the Ruby mime-types library or other software to determine defined filename extensions for MIME types, or to use filename extensions to look up the likely MIME type definitions.

We can use yum or dnf to install rubygem-mime-types-data on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-mime-types-data.

Install rubygem-mime-types-data 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 rubygem-mime-types-data using dnf by running the following command:

sudo dnf -y install rubygem-mime-types-data

Install rubygem-mime-types-data 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 rubygem-mime-types-data using yum by running the following command:

sudo yum -y install rubygem-mime-types-data

How To Uninstall rubygem-mime-types-data on AlmaLinux 8

To uninstall only the rubygem-mime-types-data package we can use the following command:

sudo dnf remove rubygem-mime-types-data

References

Summary

In this tutorial we learn how to install rubygem-mime-types-data on AlmaLinux 8 using yum and dnf.