How To Install libnotify on Fedora 34

libnotify is Desktop notification library Desktop notification library

Introduction

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

What is libnotify

libnotify is a library for sending desktop notifications to a notification daemon, as defined in the freedesktop.org Desktop Notifications spec. These notifications can be used to inform the user about an event or display some form of information without getting in the user’s way. libnotify 0.7.9 4.fc34 x86_64 43 k libnotify-0.7.9-4.fc34.src.rpm fedora Desktop notification library http LGPLv2+ libnotify is a library for sending desktop notifications to a notification daemon, as defined in the freedesktop.org Desktop Notifications spec. These notifications can be used to inform the user about an event or display some form of information without getting in the user’s way.

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

Install libnotify 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 libnotify using dnf by running the following command:

sudo dnf -y install libnotify

Install libnotify 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 libnotify using yum by running the following command:

sudo yum -y install libnotify

How To Uninstall libnotify on Fedora 34

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

sudo dnf remove libnotify

libnotify Package Contents on Fedora 34

/usr/bin/notify-send
/usr/lib/.build-id
/usr/lib/.build-id/40
/usr/lib/.build-id/40/a7d9e0c01dfd1a6eb6548f228949ae6acdc4c8
/usr/lib/.build-id/56
/usr/lib/.build-id/56/39b9c73d21d773d395c70770e58b061f117b54
/usr/lib/girepository-1.0/Notify-0.7.typelib
/usr/lib/libnotify.so.4
/usr/lib/libnotify.so.4.0.0
/usr/share/doc/libnotify
/usr/share/doc/libnotify/AUTHORS
/usr/share/doc/libnotify/NEWS
/usr/share/licenses/libnotify
/usr/share/licenses/libnotify/COPYING
/usr/share/man/man1/notify-send.1.gz
/usr/bin/notify-send
/usr/lib/.build-id
/usr/lib/.build-id/45
/usr/lib/.build-id/45/3ddf40aa461703cebb17b2f71effc29c3f11e9
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/1538c416d60087fc1325e6cc26164160cee5a7
/usr/lib64/girepository-1.0/Notify-0.7.typelib
/usr/lib64/libnotify.so.4
/usr/lib64/libnotify.so.4.0.0
/usr/share/doc/libnotify
/usr/share/doc/libnotify/AUTHORS
/usr/share/doc/libnotify/NEWS
/usr/share/licenses/libnotify
/usr/share/licenses/libnotify/COPYING
/usr/share/man/man1/notify-send.1.gz

References

Summary

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