How To Install rubygem-mime-types on CentOS 8
Introduction
In this tutorial we learn how to install rubygem-mime-types
on CentOS 8.
What is rubygem-mime-types
The mime-types library provides a library and registry for information about MIME content type definitions. It can be used to determine defined filename extensions for MIME types, or to use filename extensions to look up the likely MIME type definitions. Version 3.0 is a major release that requires Ruby 2.0 compatibility and removes deprecated functions. The columnar registry format introduced in 2.6 has been made the primary format; the registry data has been extracted from this library and put into {mime-types-data}[https Additionally, mime-types is now licensed exclusively under the MIT licence and there is a code of conduct in effect. There are a number of other smaller changes described in the History file.
We can use yum
or dnf
to install rubygem-mime-types
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-mime-types.
Install rubygem-mime-types 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
using dnf
by running the following command:
sudo dnf -y install rubygem-mime-types
Install rubygem-mime-types 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
using yum
by running the following command:
sudo yum -y install rubygem-mime-types
How To Uninstall rubygem-mime-types on CentOS 8
To uninstall only the rubygem-mime-types
package we can use the following command:
sudo dnf remove rubygem-mime-types
rubygem-mime-types Package Contents on CentOS 8
/usr/share/gems/gems/mime-types-3.2.2
/usr/share/gems/gems/mime-types-3.2.2/Licence.md
/usr/share/gems/gems/mime-types-3.2.2/lib
/usr/share/gems/gems/mime-types-3.2.2/lib/mime
/usr/share/gems/gems/mime-types-3.2.2/lib/mime-types.rb
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/type
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/type.rb
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/type/columnar.rb
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/types
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/types.rb
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/types/_columnar.rb
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/types/cache.rb
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/types/columnar.rb
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/types/container.rb
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/types/deprecations.rb
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/types/full.rb
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/types/loader.rb
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/types/logger.rb
/usr/share/gems/gems/mime-types-3.2.2/lib/mime/types/registry.rb
/usr/share/gems/specifications/mime-types-3.2.2.gemspec
References
Summary
In this tutorial we learn how to install rubygem-mime-types
on CentOS 8 using yum and dnf.