How To Install libnss3-tools on Ubuntu 20.04

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

Introduction

In this tutorial we learn how to install libnss3-tools on Ubuntu 20.04.

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.

Package: libnss3-tools Architecture: amd64 Version: 2:3.49.1-1ubuntu1 Priority: optional Section: universe/admin Source: nss Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Maintainers of Mozilla-related packages [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 4802 Depends: libc6 (>= 2.14), libnspr4 (>= 2:4.12), libnss3 (>= 2:3.44.0), zlib1g (>= 1:1.1.4) Filename: pool/universe/n/nss/libnss3-tools_3.49.1-1ubuntu1_amd64.deb Size: 997964 MD5sum: 55e236cbc08308d4ccfdaf40d32a0f4f SHA1: 1a124c5a9a676f89adaa313874f85b8f947e3ae0 SHA256: 0825366738642aa69c3be5379cf2cf3d38a5ab34bf2fc43e3eee841e5dc28156 Homepage: http://www.mozilla.org/projects/security/pki/nss/tools/ Description-en: Network Security Service tools 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 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 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 Ubuntu. 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 Ubuntu 20.04

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 Ubuntu 20.04, 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 Ubuntu 20.04 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

References

Summary

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