How To Install libavahi-client-dev on Ubuntu 20.04

In this tutorial we learn how to install libavahi-client-dev on Ubuntu 20.04. libavahi-client-dev is Development files for the Avahi client library Development files for the Avahi client library

Introduction

In this tutorial we learn how to install libavahi-client-dev on Ubuntu 20.04.

What is libavahi-client-dev

libavahi-client-dev is:

Avahi is a fully LGPL framework for Multicast DNS Service Discovery. It allows programs to publish and discover services and hosts running on a local network with no specific configuration. For example you can plug into a network and instantly find printers to print to, files to look at and people to talk to.

This package contains the development headers for Avahi’s C API which allows you to integrate mDNS/DNS-SD functionality into your application.

Package: libavahi-client-dev Architecture: amd64 Version: 0.7-4ubuntu7 Multi-Arch: same Priority: optional Section: net Source: avahi Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Utopia Maintenance Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 217 Depends: libavahi-client3 (= 0.7-4ubuntu7), libavahi-common-dev, libdbus-1-dev (>= 0.60) Filename: pool/main/a/avahi/libavahi-client-dev_0.7-4ubuntu7_amd64.deb Size: 36104 MD5sum: 60bcd13a2a77f642d147d5564e87955e SHA1: 69f4ee6f53d110ea827251293c2a5ac59bbc7abe SHA256: 79df372e8763b59d9b0e0f5727ff41fa5157798f0ac79032af54e3614f202acd Homepage: http://avahi.org/ Description-en: Development files for the Avahi client library Avahi is a fully LGPL framework for Multicast DNS Service Discovery. It allows programs to publish and discover services and hosts running on a local network with no specific configuration. For example you can plug into a network and instantly find printers to print to, files to look at and people to talk to.

This package contains the development headers for Avahi’s C API which allows you to integrate mDNS/DNS-SD functionality into your application.

There are three methods to install libavahi-client-dev on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libavahi-client-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libavahi-client-dev using apt-get by running the following command:

sudo apt-get -y install libavahi-client-dev

Install libavahi-client-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libavahi-client-dev using apt by running the following command:

sudo apt -y install libavahi-client-dev

Install libavahi-client-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libavahi-client-dev using aptitude by running the following command:

sudo aptitude -y install libavahi-client-dev

How To Uninstall libavahi-client-dev on Ubuntu 20.04

To uninstall only the libavahi-client-dev package we can use the following command:

sudo apt-get remove libavahi-client-dev

Uninstall libavahi-client-dev And Its Dependencies

To uninstall libavahi-client-dev and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libavahi-client-dev

Remove libavahi-client-dev Configurations and Data

To remove libavahi-client-dev configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libavahi-client-dev

Remove libavahi-client-dev configuration, data, and all of its dependencies

We can use the following command to remove libavahi-client-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libavahi-client-dev

References

Summary

In this tutorial we learn how to install libavahi-client-dev package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.