How to Install ruby-mime-types in Ubuntu 18.04



Install ruby-mime-types by entering the following commands in the terminal:

sudo apt update
sudo apt install ruby-mime-types

Description:

guess MIME type of files

This library allows for the identification of a file's likely MIME content type. The identification of MIME content type is based on a file's filename extensions.

Homepage: https://github.com/mime-types/ruby-mime-types/

Version: 3.1-1

Section: universe/ruby