How To Install libnss3-tools on Debian 9

In this tutorial we learn how to install libnss3-tools on Debian 9. libnss3-tools is Network Security Service tools

Introduction

In this tutorial we learn how to install libnss3-tools on Debian 9.

What is libnss3-tools

libnss3-tools is:

This is a set of tools on top of the Network Security Service libraries. This package includes:

  • certutil: manages certificate and key databases (cert7.db and key3.db)
  • modutil: manages the database of PKCS11 modules (secmod.db)
  • pk12util: imports/exports keys and certificates between the cert/key databases and files in PKCS12 format.
  • shlibsign: creates .chk files for use in FIPS mode.
  • signtool: creates digitally-signed jar archives containing files and/or code.
  • ssltap: proxy requests for an SSL server and display the contents of the messages exchanged between the client and server.

There are three methods to install libnss3-tools 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 libnss3-tools Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libnss3-tools

Install libnss3-tools Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libnss3-tools

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

sudo aptitude -y install libnss3-tools

How To Uninstall libnss3-tools on Debian 9

To uninstall only the libnss3-tools package we can use the following command:

sudo apt-get remove libnss3-tools

Uninstall libnss3-tools And Its Dependencies

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

sudo apt-get -y autoremove libnss3-tools

Remove libnss3-tools Configurations and Data

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

sudo apt-get -y purge libnss3-tools

Remove libnss3-tools configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libnss3-tools

Dependencies

libnss3-tools have the following dependencies:

References

Summary

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