Install libparse-mime-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libparse-mime-perl
parse mime-types, match against media ranges
This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges according the section 14.1 of the HTTP specification RFC 2616.