How To Install shared-mime-info on AlmaLinux 8
Introduction
In this tutorial we learn how to install shared-mime-info on AlmaLinux 8.
What is shared-mime-info
This is the freedesktop.org shared MIME info database. Many programs and desktops use the MIME system to represent the types of files. Frequently, it is necessary to work out the correct MIME type for a file. This is generally done by examining the file’s name or contents, and looking up the correct MIME type in a database.
We can use yum or dnf to install shared-mime-info on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install shared-mime-info.
Install shared-mime-info on AlmaLinux 8 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install shared-mime-info using dnf by running the following command:
sudo dnf -y install shared-mime-info
Install shared-mime-info on AlmaLinux 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install shared-mime-info using yum by running the following command:
sudo yum -y install shared-mime-info
How To Uninstall shared-mime-info on AlmaLinux 8
To uninstall only the shared-mime-info package we can use the following command:
sudo dnf remove shared-mime-info
References
Summary
In this tutorial we learn how to install shared-mime-info on AlmaLinux 8 using yum and dnf.