How To Install nginx-mimetypes on Fedora 36

In this tutorial we learn how to install nginx-mimetypes in Fedora 36. nginx-mimetypes is MIME type mappings for nginx

Introduction

In this tutorial we learn how to install nginx-mimetypes on Fedora 36.

What is nginx-mimetypes

MIME type mappings for nginx.

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

Install nginx-mimetypes 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 nginx-mimetypes using dnf by running the following command:

sudo dnf -y install nginx-mimetypes

Install nginx-mimetypes 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 nginx-mimetypes using yum by running the following command:

sudo yum -y install nginx-mimetypes

How To Uninstall nginx-mimetypes on Fedora 36

To uninstall only the nginx-mimetypes package we can use the following command:

sudo dnf remove nginx-mimetypes

nginx-mimetypes Package Contents on Fedora 36

/etc/nginx/mime.types
/usr/share/doc/nginx-mimetypes
/usr/share/doc/nginx-mimetypes/NEWS
/usr/share/licenses/nginx-mimetypes
/usr/share/licenses/nginx-mimetypes/COPYING

References

Summary

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