How To Install xdg-user-dirs on CentOS 8
Introduction
In this tutorial we learn how to install xdg-user-dirs
on CentOS 8.
What is xdg-user-dirs
Contains xdg-user-dirs-update that updates folders in a users homedirectory based on the defaults configured by the administrator.
We can use yum
or dnf
to install xdg-user-dirs
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install xdg-user-dirs.
Install xdg-user-dirs 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 xdg-user-dirs
using dnf
by running the following command:
sudo dnf -y install xdg-user-dirs
Install xdg-user-dirs 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 xdg-user-dirs
using yum
by running the following command:
sudo yum -y install xdg-user-dirs
How To Uninstall xdg-user-dirs on CentOS 8
To uninstall only the xdg-user-dirs
package we can use the following command:
sudo dnf remove xdg-user-dirs
xdg-user-dirs Package Contents on CentOS 8
/etc/xdg/autostart/xdg-user-dirs.desktop
/etc/xdg/user-dirs.conf
/etc/xdg/user-dirs.defaults
/usr/bin/xdg-user-dir
/usr/bin/xdg-user-dirs-update
/usr/lib/.build-id
/usr/lib/.build-id/54
/usr/lib/.build-id/54/304684ac8525864c3fafa4dd6a9b9ea402c9b4
/usr/share/doc/xdg-user-dirs
/usr/share/doc/xdg-user-dirs/AUTHORS
/usr/share/doc/xdg-user-dirs/NEWS
/usr/share/doc/xdg-user-dirs/README
/usr/share/licenses/xdg-user-dirs
/usr/share/licenses/xdg-user-dirs/COPYING
/usr/share/locale/af/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/an/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ar/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/as/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ast/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/be/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/be@latin/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/bg/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/bn_IN/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/br/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ca/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/crh/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/cs/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/da/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/de/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/el/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/eo/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/es/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/et/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/eu/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/fa/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/fi/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/fr/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/fur/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ga/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/gd/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/gl/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/gu/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/he/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/hi/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/hr/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/hu/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ia/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/id/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/is/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/it/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ja/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/kk/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/kn/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ko/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ku/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ky/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/lt/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/lv/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/mk/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ml/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/mr/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/nb/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/nds/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/nl/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/nn/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/or/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/pa/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/pl/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ps/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/pt/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/pt_BR/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ro/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ru/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/sk/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/sl/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/sq/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/sr/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/sr@Latn/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/sv/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/ta/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/te/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/th/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/tr/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/uk/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/vi/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/zh_CN/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/zh_HK/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/locale/zh_TW/LC_MESSAGES/xdg-user-dirs.mo
/usr/share/man/man1/xdg-user-dir.1.gz
/usr/share/man/man1/xdg-user-dirs-update.1.gz
/usr/share/man/man5/user-dirs.conf.5.gz
/usr/share/man/man5/user-dirs.defaults.5.gz
/usr/share/man/man5/user-dirs.dirs.5.gz
References
Summary
In this tutorial we learn how to install xdg-user-dirs
on CentOS 8 using yum and dnf.