How To Install xdg-utils on CentOS 7
Introduction
In this tutorial we learn how to install xdg-utils on CentOS 7.
What is xdg-utils
The xdg-utils package is a set of simple scripts that provide basic desktop integration functions for any Free Desktop, such as Linux. They are intended to provide a set of defacto standards. This means that * Third party software developers can rely on these xdg-utils for all of their simple integration needs. * Developers of desktop environments can make sure that their environments are well supported * Distribution vendors can provide custom versions of these utilities The following scripts are provided at this time * xdg-desktop-icon Install icons to the desktop * xdg-desktop-menu Install desktop menu items * xdg-email Send mail using the user’s preferred e-mail composer * xdg-icon-resource Install icon resources * xdg-mime Query information about file type handling and install descriptions for new file types * xdg-open Open a file or URL in the user’s preferred application * xdg-screensaver Control the screensaver * xdg-settings Get various settings from the desktop environment
We can use yum or dnf to install xdg-utils on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install xdg-utils.
Install xdg-utils on CentOS 7 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install xdg-utils using yum by running the following command:
sudo yum -y install xdg-utils
Install xdg-utils on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf using the following command.
sudo dnf makecache
After updating yum database, We can install xdg-utils using dnf by running the following command:
sudo dnf -y install xdg-utils
How To Uninstall xdg-utils on CentOS 7
To uninstall only the xdg-utils package we can use the following command:
sudo dnf remove xdg-utils
References
Summary
In this tutorial we learn how to install xdg-utils on CentOS 7 using yum and dnf.