How To Install avahi on Rocky Linux 8

In this tutorial we learn how to install avahi on Rocky Linux 8. avahi is Local network service discovery

Introduction

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

What is avahi

Avahi is a system which facilitates service discovery on a local network – this means that you can plug your laptop or computer into a network and instantly be able to view other people who you can chat with, find printers to print to or find files being shared. This kind of technology is already found in MacOS X (branded ‘Rendezvous’, ‘Bonjour’ and sometimes ‘ZeroConf’) and is very convenient.

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

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

sudo dnf -y install avahi

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

sudo yum -y install avahi

How To Uninstall avahi on Rocky Linux 8

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

sudo dnf remove avahi

avahi Package Contents on Rocky Linux 8

/etc/avahi
/etc/avahi/avahi-daemon.conf
/etc/avahi/etc
/etc/avahi/etc/localtime
/etc/avahi/hosts
/etc/avahi/services
/etc/dbus-1/system.d/avahi-dbus.conf
/usr/lib/.build-id
/usr/lib/.build-id/21
/usr/lib/.build-id/21/77213d4d01901d51f32fda632c7f9d678b0d38
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/f81126dc2b7c7a02d32ac90b7c0eb488711ccb
/usr/lib/avahi
/usr/lib/avahi/service-types.db
/usr/lib/libavahi-core.so.7
/usr/lib/libavahi-core.so.7.0.2
/usr/lib/systemd/system/avahi-daemon.service
/usr/lib/systemd/system/avahi-daemon.socket
/usr/sbin/avahi-daemon
/usr/share/avahi
/usr/share/avahi/avahi-service.dtd
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.AddressResolver.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.DomainBrowser.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.EntryGroup.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.HostNameResolver.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.RecordBrowser.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.Server.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceBrowser.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceResolver.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceTypeBrowser.xml
/usr/share/dbus-1/system-services/org.freedesktop.Avahi.service
/usr/share/doc/avahi
/usr/share/doc/avahi/API-CHANGES-0.6
/usr/share/doc/avahi/AUTHORS
/usr/share/doc/avahi/COMPAT-LAYERS
/usr/share/doc/avahi/DBUS-API
/usr/share/doc/avahi/HACKING
/usr/share/doc/avahi/MALLOC
/usr/share/doc/avahi/NEWS
/usr/share/doc/avahi/README
/usr/share/doc/avahi/TODO
/usr/share/doc/avahi/avahi-poll.dia
/usr/share/doc/avahi/example.service
/usr/share/doc/avahi/overview.dia
/usr/share/doc/avahi/server-states.dia
/usr/share/doc/avahi/sftp-ssh.service
/usr/share/doc/avahi/ssh.service
/usr/share/locale/ach/LC_MESSAGES/avahi.mo
/usr/share/locale/ar/LC_MESSAGES/avahi.mo
/usr/share/locale/bg/LC_MESSAGES/avahi.mo
/usr/share/locale/ca/LC_MESSAGES/avahi.mo
/usr/share/locale/cs/LC_MESSAGES/avahi.mo
/usr/share/locale/da/LC_MESSAGES/avahi.mo
/usr/share/locale/de/LC_MESSAGES/avahi.mo
/usr/share/locale/el/LC_MESSAGES/avahi.mo
/usr/share/locale/en_AU/LC_MESSAGES/avahi.mo
/usr/share/locale/en_CA/LC_MESSAGES/avahi.mo
/usr/share/locale/en_GB/LC_MESSAGES/avahi.mo
/usr/share/locale/en_NZ/LC_MESSAGES/avahi.mo
/usr/share/locale/eo/LC_MESSAGES/avahi.mo
/usr/share/locale/es/LC_MESSAGES/avahi.mo
/usr/share/locale/et/LC_MESSAGES/avahi.mo
/usr/share/locale/fa/LC_MESSAGES/avahi.mo
/usr/share/locale/fi/LC_MESSAGES/avahi.mo
/usr/share/locale/fo/LC_MESSAGES/avahi.mo
/usr/share/locale/fr/LC_MESSAGES/avahi.mo
/usr/share/locale/gl/LC_MESSAGES/avahi.mo
/usr/share/locale/he/LC_MESSAGES/avahi.mo
/usr/share/locale/hu/LC_MESSAGES/avahi.mo
/usr/share/locale/id/LC_MESSAGES/avahi.mo
/usr/share/locale/it/LC_MESSAGES/avahi.mo
/usr/share/locale/ja/LC_MESSAGES/avahi.mo
/usr/share/locale/ko/LC_MESSAGES/avahi.mo
/usr/share/locale/lv/LC_MESSAGES/avahi.mo
/usr/share/locale/ms/LC_MESSAGES/avahi.mo
/usr/share/locale/nl/LC_MESSAGES/avahi.mo
/usr/share/locale/oc/LC_MESSAGES/avahi.mo
/usr/share/locale/pl/LC_MESSAGES/avahi.mo
/usr/share/locale/pt_BR/LC_MESSAGES/avahi.mo
/usr/share/locale/ro/LC_MESSAGES/avahi.mo
/usr/share/locale/ru/LC_MESSAGES/avahi.mo
/usr/share/locale/sk/LC_MESSAGES/avahi.mo
/usr/share/locale/sl/LC_MESSAGES/avahi.mo
/usr/share/locale/sr/LC_MESSAGES/avahi.mo
/usr/share/locale/sr@latin/LC_MESSAGES/avahi.mo
/usr/share/locale/sv/LC_MESSAGES/avahi.mo
/usr/share/locale/tr/LC_MESSAGES/avahi.mo
/usr/share/locale/uk/LC_MESSAGES/avahi.mo
/usr/share/locale/zh_CN/LC_MESSAGES/avahi.mo
/usr/share/locale/zh_TW/LC_MESSAGES/avahi.mo
/usr/share/man/man5/avahi-daemon.conf.5.gz
/usr/share/man/man5/avahi.hosts.5.gz
/usr/share/man/man5/avahi.service.5.gz
/usr/share/man/man8/avahi-daemon.8.gz
/var/run/avahi-daemon
/etc/avahi
/etc/avahi/avahi-daemon.conf
/etc/avahi/etc
/etc/avahi/etc/localtime
/etc/avahi/hosts
/etc/avahi/services
/etc/dbus-1/system.d/avahi-dbus.conf
/usr/lib/.build-id
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/e08cf5c25b7603bffc9e7b93e6e9dd76bcf2f1
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/d0a6e364f38bd039126210796f088bb3d5b0dc
/usr/lib/systemd/system/avahi-daemon.service
/usr/lib/systemd/system/avahi-daemon.socket
/usr/lib64/avahi
/usr/lib64/avahi/service-types.db
/usr/lib64/libavahi-core.so.7
/usr/lib64/libavahi-core.so.7.0.2
/usr/sbin/avahi-daemon
/usr/share/avahi
/usr/share/avahi/avahi-service.dtd
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.AddressResolver.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.DomainBrowser.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.EntryGroup.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.HostNameResolver.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.RecordBrowser.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.Server.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceBrowser.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceResolver.xml
/usr/share/dbus-1/interfaces/org.freedesktop.Avahi.ServiceTypeBrowser.xml
/usr/share/dbus-1/system-services/org.freedesktop.Avahi.service
/usr/share/doc/avahi
/usr/share/doc/avahi/API-CHANGES-0.6
/usr/share/doc/avahi/AUTHORS
/usr/share/doc/avahi/COMPAT-LAYERS
/usr/share/doc/avahi/DBUS-API
/usr/share/doc/avahi/HACKING
/usr/share/doc/avahi/MALLOC
/usr/share/doc/avahi/NEWS
/usr/share/doc/avahi/README
/usr/share/doc/avahi/TODO
/usr/share/doc/avahi/avahi-poll.dia
/usr/share/doc/avahi/example.service
/usr/share/doc/avahi/overview.dia
/usr/share/doc/avahi/server-states.dia
/usr/share/doc/avahi/sftp-ssh.service
/usr/share/doc/avahi/ssh.service
/usr/share/locale/ach/LC_MESSAGES/avahi.mo
/usr/share/locale/ar/LC_MESSAGES/avahi.mo
/usr/share/locale/bg/LC_MESSAGES/avahi.mo
/usr/share/locale/ca/LC_MESSAGES/avahi.mo
/usr/share/locale/cs/LC_MESSAGES/avahi.mo
/usr/share/locale/da/LC_MESSAGES/avahi.mo
/usr/share/locale/de/LC_MESSAGES/avahi.mo
/usr/share/locale/el/LC_MESSAGES/avahi.mo
/usr/share/locale/en_AU/LC_MESSAGES/avahi.mo
/usr/share/locale/en_CA/LC_MESSAGES/avahi.mo
/usr/share/locale/en_GB/LC_MESSAGES/avahi.mo
/usr/share/locale/en_NZ/LC_MESSAGES/avahi.mo
/usr/share/locale/eo/LC_MESSAGES/avahi.mo
/usr/share/locale/es/LC_MESSAGES/avahi.mo
/usr/share/locale/et/LC_MESSAGES/avahi.mo
/usr/share/locale/fa/LC_MESSAGES/avahi.mo
/usr/share/locale/fi/LC_MESSAGES/avahi.mo
/usr/share/locale/fo/LC_MESSAGES/avahi.mo
/usr/share/locale/fr/LC_MESSAGES/avahi.mo
/usr/share/locale/gl/LC_MESSAGES/avahi.mo
/usr/share/locale/he/LC_MESSAGES/avahi.mo
/usr/share/locale/hu/LC_MESSAGES/avahi.mo
/usr/share/locale/id/LC_MESSAGES/avahi.mo
/usr/share/locale/it/LC_MESSAGES/avahi.mo
/usr/share/locale/ja/LC_MESSAGES/avahi.mo
/usr/share/locale/ko/LC_MESSAGES/avahi.mo
/usr/share/locale/lv/LC_MESSAGES/avahi.mo
/usr/share/locale/ms/LC_MESSAGES/avahi.mo
/usr/share/locale/nl/LC_MESSAGES/avahi.mo
/usr/share/locale/oc/LC_MESSAGES/avahi.mo
/usr/share/locale/pl/LC_MESSAGES/avahi.mo
/usr/share/locale/pt_BR/LC_MESSAGES/avahi.mo
/usr/share/locale/ro/LC_MESSAGES/avahi.mo
/usr/share/locale/ru/LC_MESSAGES/avahi.mo
/usr/share/locale/sk/LC_MESSAGES/avahi.mo
/usr/share/locale/sl/LC_MESSAGES/avahi.mo
/usr/share/locale/sr/LC_MESSAGES/avahi.mo
/usr/share/locale/sr@latin/LC_MESSAGES/avahi.mo
/usr/share/locale/sv/LC_MESSAGES/avahi.mo
/usr/share/locale/tr/LC_MESSAGES/avahi.mo
/usr/share/locale/uk/LC_MESSAGES/avahi.mo
/usr/share/locale/zh_CN/LC_MESSAGES/avahi.mo
/usr/share/locale/zh_TW/LC_MESSAGES/avahi.mo
/usr/share/man/man5/avahi-daemon.conf.5.gz
/usr/share/man/man5/avahi.hosts.5.gz
/usr/share/man/man5/avahi.service.5.gz
/usr/share/man/man8/avahi-daemon.8.gz
/var/run/avahi-daemon

References

Summary

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