How To Install rubygem-mimemagic on Fedora 36

In this tutorial we learn how to install rubygem-mimemagic in Fedora 36. rubygem-mimemagic is Fast mime detection by extension or content

Introduction

In this tutorial we learn how to install rubygem-mimemagic on Fedora 36.

What is rubygem-mimemagic

Fast mime detection by extension or content in pure ruby (Uses freedesktop.org.xml shared-mime-info database).

We can use yum or dnf to install rubygem-mimemagic on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-mimemagic.

Install rubygem-mimemagic on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install rubygem-mimemagic using dnf by running the following command:

sudo dnf -y install rubygem-mimemagic

Install rubygem-mimemagic on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install rubygem-mimemagic using yum by running the following command:

sudo yum -y install rubygem-mimemagic

How To Uninstall rubygem-mimemagic on Fedora 36

To uninstall only the rubygem-mimemagic package we can use the following command:

sudo dnf remove rubygem-mimemagic

rubygem-mimemagic Package Contents on Fedora 36

/usr/share/gems/gems/mimemagic-0.3.2
/usr/share/gems/gems/mimemagic-0.3.2/LICENSE
/usr/share/gems/gems/mimemagic-0.3.2/lib
/usr/share/gems/gems/mimemagic-0.3.2/lib/mimemagic
/usr/share/gems/gems/mimemagic-0.3.2/lib/mimemagic.rb
/usr/share/gems/gems/mimemagic-0.3.2/lib/mimemagic/overlay.rb
/usr/share/gems/gems/mimemagic-0.3.2/lib/mimemagic/tables.rb
/usr/share/gems/gems/mimemagic-0.3.2/lib/mimemagic/version.rb
/usr/share/gems/gems/mimemagic-0.3.2/script
/usr/share/gems/gems/mimemagic-0.3.2/script/freedesktop.org.xml
/usr/share/gems/gems/mimemagic-0.3.2/script/generate-mime.rb
/usr/share/gems/specifications/mimemagic-0.3.2.gemspec

References

Summary

In this tutorial we learn how to install rubygem-mimemagic on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).