How To Install rubygem-mime-types-data on Rocky Linux 8

In this tutorial we learn how to install rubygem-mime-types-data on Rocky Linux 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 Rocky Linux 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 Rocky Linux 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 Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove rubygem-mime-types-data

rubygem-mime-types-data Package Contents on Rocky Linux 8

/usr/share/gems/gems/mime-types-data-3.2019.0331
/usr/share/gems/gems/mime-types-data-3.2019.0331/Licence.md
/usr/share/gems/gems/mime-types-data-3.2019.0331/data
/usr/share/gems/gems/mime-types-data-3.2019.0331/data/mime-types.json
/usr/share/gems/gems/mime-types-data-3.2019.0331/data/mime.content_type.column
/usr/share/gems/gems/mime-types-data-3.2019.0331/data/mime.docs.column
/usr/share/gems/gems/mime-types-data-3.2019.0331/data/mime.encoding.column
/usr/share/gems/gems/mime-types-data-3.2019.0331/data/mime.flags.column
/usr/share/gems/gems/mime-types-data-3.2019.0331/data/mime.friendly.column
/usr/share/gems/gems/mime-types-data-3.2019.0331/data/mime.pext.column
/usr/share/gems/gems/mime-types-data-3.2019.0331/data/mime.use_instead.column
/usr/share/gems/gems/mime-types-data-3.2019.0331/data/mime.xrefs.column
/usr/share/gems/gems/mime-types-data-3.2019.0331/lib
/usr/share/gems/gems/mime-types-data-3.2019.0331/lib/mime
/usr/share/gems/gems/mime-types-data-3.2019.0331/lib/mime-types-data.rb
/usr/share/gems/gems/mime-types-data-3.2019.0331/lib/mime/types
/usr/share/gems/gems/mime-types-data-3.2019.0331/lib/mime/types/data.rb
/usr/share/gems/gems/mime-types-data-3.2019.0331/types
/usr/share/gems/gems/mime-types-data-3.2019.0331/types/application.yaml
/usr/share/gems/gems/mime-types-data-3.2019.0331/types/audio.yaml
/usr/share/gems/gems/mime-types-data-3.2019.0331/types/chemical.yaml
/usr/share/gems/gems/mime-types-data-3.2019.0331/types/conference.yaml
/usr/share/gems/gems/mime-types-data-3.2019.0331/types/drawing.yaml
/usr/share/gems/gems/mime-types-data-3.2019.0331/types/font.yaml
/usr/share/gems/gems/mime-types-data-3.2019.0331/types/image.yaml
/usr/share/gems/gems/mime-types-data-3.2019.0331/types/message.yaml
/usr/share/gems/gems/mime-types-data-3.2019.0331/types/model.yaml
/usr/share/gems/gems/mime-types-data-3.2019.0331/types/multipart.yaml
/usr/share/gems/gems/mime-types-data-3.2019.0331/types/text.yaml
/usr/share/gems/gems/mime-types-data-3.2019.0331/types/video.yaml
/usr/share/gems/gems/mime-types-data-3.2019.0331/types/world.yaml
/usr/share/gems/specifications/mime-types-data-3.2019.0331.gemspec

References

Summary

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