How To Install desktop-file-utils on CentOS 8

desktop-file-utils is Utilities for manipulating .desktop files

Introduction

In this tutorial we learn how to install desktop-file-utils on CentOS 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 CentOS 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 CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8

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 CentOS 8

/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/12
/usr/lib/.build-id/12/802fc85fc095e5a5c496193523c22caa6a0480
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/9afaa23133a53ccb480353faea106a1c338e84
/usr/lib/.build-id/63
/usr/lib/.build-id/63/9fd88b08f80c51c733dbe603748099c8696d1d
/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/desktop-file-utils/desktop-entry-mode.elc
/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 CentOS 8 using yum and dnf.