How To Install xdg-desktop-portal on CentOS 8
Introduction
In this tutorial we learn how to install xdg-desktop-portal
on CentOS 8.
What is xdg-desktop-portal
xdg-desktop-portal works by exposing a series of D-Bus interfaces known as portals under a well-known name (org.freedesktop.portal.Desktop) and object path (/org/freedesktop/portal/desktop). The portal interfaces include APIs for file access, opening URIs, printing and others.
We can use yum
or dnf
to install xdg-desktop-portal
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install xdg-desktop-portal.
Install xdg-desktop-portal 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-desktop-portal
using dnf
by running the following command:
sudo dnf -y install xdg-desktop-portal
Install xdg-desktop-portal 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-desktop-portal
using yum
by running the following command:
sudo yum -y install xdg-desktop-portal
How To Uninstall xdg-desktop-portal on CentOS 8
To uninstall only the xdg-desktop-portal
package we can use the following command:
sudo dnf remove xdg-desktop-portal
xdg-desktop-portal Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/140ea52713b4aea82649c6287d24447606112a
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/17a5ef00166e2e5bcd93a0c4286d32e8690b5f
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/9163db224aaac81ff51c337ba9ef60451e435e
/usr/lib/systemd/user/xdg-desktop-portal.service
/usr/lib/systemd/user/xdg-document-portal.service
/usr/lib/systemd/user/xdg-permission-store.service
/usr/libexec/xdg-desktop-portal
/usr/libexec/xdg-document-portal
/usr/libexec/xdg-permission-store
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Access.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Account.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.AppChooser.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Background.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Email.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.FileChooser.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Inhibit.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Lockdown.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Notification.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.PermissionStore.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Print.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.RemoteDesktop.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Request.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.ScreenCast.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Screenshot.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Secret.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Session.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Settings.xml
/usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Wallpaper.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Account.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Background.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Camera.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Device.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Documents.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Email.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.FileChooser.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.FileTransfer.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.GameMode.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Inhibit.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Location.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.MemoryMonitor.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.NetworkMonitor.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Notification.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.OpenURI.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Print.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.ProxyResolver.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.RemoteDesktop.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Request.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.ScreenCast.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Screenshot.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Secret.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Session.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Settings.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Trash.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Wallpaper.xml
/usr/share/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service
/usr/share/dbus-1/services/org.freedesktop.portal.Desktop.service
/usr/share/dbus-1/services/org.freedesktop.portal.Documents.service
/usr/share/doc/xdg-desktop-portal
/usr/share/doc/xdg-desktop-portal/README.md
/usr/share/doc/xdg-desktop-portal/docbook.css
/usr/share/doc/xdg-desktop-portal/portal-docs.html
/usr/share/licenses/xdg-desktop-portal
/usr/share/licenses/xdg-desktop-portal/COPYING
/usr/share/locale/cs/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/da/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/de/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/en_GB/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/es/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/fr/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/gl/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/hu/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/id/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/it/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/lt/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/pl/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/pt_BR/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/sk/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/sr/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/sv/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/tr/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/uk/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/zh_CN/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/locale/zh_TW/LC_MESSAGES/xdg-desktop-portal.mo
/usr/share/xdg-desktop-portal
/usr/share/xdg-desktop-portal/portals
References
Summary
In this tutorial we learn how to install xdg-desktop-portal
on CentOS 8 using yum and dnf.