How To Install libportal on Fedora 34

libportal is Flatpak portal library Flatpak portal library

Introduction

In this tutorial we learn how to install libportal on Fedora 34.

What is libportal

libportal provides GIO-style asynchronous APIs for most Flatpak portals. libportal 0.4 1.fc34 x86_64 57 k libportal-0.4-1.fc34.src.rpm updates Flatpak portal library https LGPLv2+ libportal provides GIO-style asynchronous APIs for most Flatpak portals.

We can use yum or dnf to install libportal on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libportal.

Install libportal on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install libportal using dnf by running the following command:

sudo dnf -y install libportal

Install libportal on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install libportal using yum by running the following command:

sudo yum -y install libportal

How To Uninstall libportal on Fedora 34

To uninstall only the libportal package we can use the following command:

sudo dnf remove libportal

libportal Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/18
/usr/lib/.build-id/18/23935d48bf1042cc7a02cc59bde12b137395df
/usr/lib/libportal.so.0
/usr/lib/libportal.so.0.0.1
/usr/share/doc/libportal
/usr/share/doc/libportal/COPYING
/usr/share/doc/libportal/README.md
/usr/lib/.build-id
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/b2fe9db6c1f74f0471b514132b0ae1f9a02d70
/usr/lib/libportal.so.0
/usr/lib/libportal.so.0.0.1
/usr/share/doc/libportal
/usr/share/doc/libportal/NEWS
/usr/share/doc/libportal/README.md
/usr/share/licenses/libportal
/usr/share/licenses/libportal/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/61
/usr/lib/.build-id/61/d0d443ece91018d76d573d1f748f25ea4d5cc7
/usr/lib64/libportal.so.0
/usr/lib64/libportal.so.0.0.1
/usr/share/doc/libportal
/usr/share/doc/libportal/COPYING
/usr/share/doc/libportal/README.md
/usr/lib/.build-id
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/7ca48c7f29166d16100632171194a5970ed402
/usr/lib64/libportal.so.0
/usr/lib64/libportal.so.0.0.1
/usr/share/doc/libportal
/usr/share/doc/libportal/NEWS
/usr/share/doc/libportal/README.md
/usr/share/licenses/libportal
/usr/share/licenses/libportal/COPYING

References

Summary

In this tutorial we learn how to install libportal on Fedora 34 using yum and dnf.