How To Install rubygem-mime-types-data on CentOS 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 CentOS 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 CentOS 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 CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 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 CentOS 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 CentOS 8 using yum and dnf.