How To Install desktop-file-utils on Fedora 36

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

Introduction

In this tutorial we learn how to install desktop-file-utils on Fedora 36.

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 Fedora 36. 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 Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove desktop-file-utils

desktop-file-utils Package Contents on Fedora 36

/usr/bin/desktop-file-edit
/usr/bin/desktop-file-install
/usr/bin/desktop-file-validate
/usr/bin/update-desktop-database
/usr/lib/.build-id
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/c284508aef48b005eed2e927641a99ed30795c
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/d3d65aae6a4af38510994f68b2f0f392fe89a8
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/a8a82505ea09d2a08121f64a0fe1293cfe1d5d
/usr/share/doc/desktop-file-utils
/usr/share/doc/desktop-file-utils/AUTHORS
/usr/share/doc/desktop-file-utils/NEWS
/usr/share/doc/desktop-file-utils/README
/usr/share/emacs/site-lisp/desktop-file-utils
/usr/share/emacs/site-lisp/desktop-file-utils/desktop-entry-mode.el
/usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el
/usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.elc
/usr/share/licenses/desktop-file-utils
/usr/share/licenses/desktop-file-utils/COPYING
/usr/share/man/man1/desktop-file-edit.1.gz
/usr/share/man/man1/desktop-file-install.1.gz
/usr/share/man/man1/desktop-file-validate.1.gz
/usr/share/man/man1/update-desktop-database.1.gz

References

Summary

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