How To Install libkdnssd4 on Ubuntu 18.04

In this tutorial we learn how to install libkdnssd4 on Ubuntu 18.04. libkdnssd4 is DNS-SD Protocol Library for the KDE Platform

Introduction

In this tutorial we learn how to install libkdnssd4 on Ubuntu 18.04.

What is libkdnssd4

libkdnssd4 is:

This library is for handling the DNS-based Service Discovery Protocol (DNS-SD), the layer of Zeroconf that allows network services, such as printers, to be discovered without any user intervention or centralized infrastructure.

This package is part of the KDE Development Platform libraries module.

There are three methods to install libkdnssd4 on Ubuntu 18.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 libkdnssd4 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libkdnssd4

Install libkdnssd4 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libkdnssd4 using apt by running the following command:

sudo apt -y install libkdnssd4

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

sudo aptitude -y install libkdnssd4

How To Uninstall libkdnssd4 on Ubuntu 18.04

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

sudo apt-get remove libkdnssd4

Uninstall libkdnssd4 And Its Dependencies

To uninstall libkdnssd4 and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libkdnssd4

Remove libkdnssd4 Configurations and Data

To remove libkdnssd4 configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libkdnssd4

Remove libkdnssd4 configuration, data, and all of its dependencies

We can use the following command to remove libkdnssd4 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libkdnssd4

References

Summary

In this tutorial we learn how to install libkdnssd4 package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.