How To Install avahi-glib on Rocky Linux 8

In this tutorial we learn how to install avahi-glib on Rocky Linux 8. avahi-glib is Glib libraries for avahi

Introduction

In this tutorial we learn how to install avahi-glib on Rocky Linux 8.

What is avahi-glib

Libraries for easy use of avahi from glib applications.

We can use yum or dnf to install avahi-glib on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install avahi-glib.

Install avahi-glib on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install avahi-glib

Install avahi-glib on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install avahi-glib using yum by running the following command:

sudo yum -y install avahi-glib

How To Uninstall avahi-glib on Rocky Linux 8

To uninstall only the avahi-glib package we can use the following command:

sudo dnf remove avahi-glib

avahi-glib Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/53
/usr/lib/.build-id/53/8aa542f3189defe00d2f91ce4391d7cb564ece
/usr/lib64/libavahi-glib.so.1
/usr/lib64/libavahi-glib.so.1.0.2
/usr/lib/.build-id
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/465ea3117756cd5aa31a9609c6de8c9cc5da92
/usr/lib/libavahi-glib.so.1
/usr/lib/libavahi-glib.so.1.0.2

References

Summary

In this tutorial we learn how to install avahi-glib on Rocky Linux 8 using yum and dnf.