How To Install libnss-lwres on Debian 9

In this tutorial we learn how to install libnss-lwres on Debian 9. libnss-lwres is NSS module for using bind9s lwres as a naming service

Introduction

In this tutorial we learn how to install libnss-lwres on Debian 9.

What is libnss-lwres

libnss-lwres is:

This package provides a Name Service Switch module that allows bind9’s lightweight resolver to act as a name service. It is intended to replace the Name Service Switch module that uses the bind4/bind8 resolver for name service lookups.

There are three methods to install libnss-lwres on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libnss-lwres Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libnss-lwres

Install libnss-lwres Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libnss-lwres

Install libnss-lwres 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libnss-lwres using aptitude by running the following command:

sudo aptitude -y install libnss-lwres

How To Uninstall libnss-lwres on Debian 9

To uninstall only the libnss-lwres package we can use the following command:

sudo apt-get remove libnss-lwres

Uninstall libnss-lwres And Its Dependencies

To uninstall libnss-lwres and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libnss-lwres

Remove libnss-lwres Configurations and Data

To remove libnss-lwres configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libnss-lwres

Remove libnss-lwres configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libnss-lwres

Dependencies

libnss-lwres have the following dependencies:

References

Summary

In this tutorial we learn how to install libnss-lwres package on Debian 9 using different package management tools: apt, apt-get and aptitude.