How To Install dirmngr on Ubuntu 20.04

In this tutorial we learn how to install dirmngr on Ubuntu 20.04. dirmngr is GNU privacy guard - network certificate management service GNU privacy guard - network certificate management service

Introduction

In this tutorial we learn how to install dirmngr on Ubuntu 20.04.

What is dirmngr

dirmngr is:

dirmngr is a server for managing and downloading OpenPGP and X.509 certificates, as well as updates and status signals related to those certificates. For OpenPGP, this means pulling from the public HKP/HKPS keyservers, or from LDAP servers. For X.509 this includes Certificate Revocation Lists (CRLs) and Online Certificate Status Protocol updates (OCSP). It is capable of using Tor for network access.

dirmngr is used for network access by gpg, gpgsm, and dirmngr-client, among other tools. Unless this package is installed, the parts of the GnuPG suite that try to interact with the network will fail. Task: server, ubuntu-desktop-minimal, samba-server, ubuntu-desktop, cloud-image, mail-server, ubuntu-core, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: dirmngr Architecture: amd64 Version: 2.2.19-3ubuntu2 Multi-Arch: foreign Priority: optional Section: utils Source: gnupg2 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian GnuPG Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 918 Depends: adduser, gpgconf (= 2.2.19-3ubuntu2), lsb-base (>= 3.2-13), init-system-helpers (>= 1.52), libassuan0 (>= 2.5.0), libc6 (>= 2.25), libgcrypt20 (>= 1.8.0), libgnutls30 (>= 3.6.6), libgpg-error0 (>= 1.35), libksba8 (>= 1.3.4), libldap-2.4-2 (>= 2.4.7), libnpth0 (>= 0.90) Recommends: gnupg (= 2.2.19-3ubuntu2) Suggests: dbus-user-session, libpam-systemd, pinentry-gnome3, tor Breaks: gnupg2 (« 2.1.10-2) Replaces: gnupg2 (« 2.1.10-2) Enhances: gpg, gpgsm, squid Filename: pool/main/g/gnupg2/dirmngr_2.2.19-3ubuntu2_amd64.deb Size: 329332 MD5sum: dfdc399e2b674962eb3df5df5869dba7 SHA1: 6358d1c6d1add6090065ef213eb16421c78d6544 SHA256: bbce7fb5848075c58ee1c2ec61d65dbcc9eeac94e80ab8cc5f76a997a5a58ccc Homepage: https://www.gnupg.org/ Description-en: GNU privacy guard - network certificate management service dirmngr is a server for managing and downloading OpenPGP and X.509 certificates, as well as updates and status signals related to those certificates. For OpenPGP, this means pulling from the public HKP/HKPS keyservers, or from LDAP servers. For X.509 this includes Certificate Revocation Lists (CRLs) and Online Certificate Status Protocol updates (OCSP). It is capable of using Tor for network access.

dirmngr is used for network access by gpg, gpgsm, and dirmngr-client, among other tools. Unless this package is installed, the parts of the GnuPG suite that try to interact with the network will fail. Task: server, ubuntu-desktop-minimal, samba-server, ubuntu-desktop, cloud-image, mail-server, ubuntu-core, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

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

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

sudo apt-get update

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

sudo apt-get -y install dirmngr

Install dirmngr Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dirmngr

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

sudo aptitude -y install dirmngr

How To Uninstall dirmngr on Ubuntu 20.04

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

sudo apt-get remove dirmngr

Uninstall dirmngr And Its Dependencies

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

sudo apt-get -y autoremove dirmngr

Remove dirmngr Configurations and Data

To remove dirmngr configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge dirmngr

Remove dirmngr configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge dirmngr

References

Summary

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