How To Install desktop-file-utils on AlmaLinux 8

In this tutorial we learn how to install desktop-file-utils in AlmaLinux 8. desktop-file-utils is Utilities for manipulating .desktop files

Introduction

In this tutorial we learn how to install desktop-file-utils on AlmaLinux 8.

What is desktop-file-utils

.desktop files are used to describe an application for inclusion in GNOME or KDE menus. This package contains desktop-file-validate which checks whether a .desktop file complies with the specification at http which installs a desktop file to the standard directory, optionally fixing it up in the process.

We can use yum or dnf to install desktop-file-utils on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install desktop-file-utils.

Install desktop-file-utils 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 desktop-file-utils using dnf by running the following command:

sudo dnf -y install desktop-file-utils

Install desktop-file-utils 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 desktop-file-utils using yum by running the following command:

sudo yum -y install desktop-file-utils

How To Uninstall desktop-file-utils on AlmaLinux 8

To uninstall only the desktop-file-utils package we can use the following command:

sudo dnf remove desktop-file-utils

References

Summary

In this tutorial we learn how to install desktop-file-utils on AlmaLinux 8 using yum and dnf.