How To Install avahi on CentOS 8
Introduction
In this tutorial we learn how to install avahi
on CentOS 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. avahi 0.7 20.el8 x86_64 281 k avahi-0.7-20.el8.src.rpm baseos Local network service discovery http LGPLv2+ 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install avahi.
Install avahi 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 avahi
using dnf
by running the following command:
sudo dnf -y install avahi
Install avahi 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 avahi
using yum
by running the following command:
sudo yum -y install avahi
How To Uninstall avahi on CentOS 8
To uninstall only the avahi
package we can use the following command:
sudo dnf remove avahi
avahi Package Contents on CentOS 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/23
/usr/lib/.build-id/23/0ce9af399c640daee202f8d96b067158b284b5
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/9dab47bfa6f01cb7804bacba81eaf8caff829f
/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
/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/a2
/usr/lib/.build-id/a2/5c79c116a84311305048939164cd6673053d7a
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/933aa8b2f6de3a9698bd82a6708dfdd92cc2a7
/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
References
- [avahi website](http://avahi.org http://avahi.org)
Summary
In this tutorial we learn how to install avahi
on CentOS 8 using yum and dnf.