How To Install dirmngr on Kali Linux
Introduction
In this tutorial we learn how to install dirmngr on Kali Linux.
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.
There are three methods to install dirmngr on Kali Linux. 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 updateAfter updating apt database, We can install dirmngr using apt-get by running the following command:
sudo apt-get -y install dirmngrInstall dirmngr Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install dirmngr using apt by running the following command:
sudo apt -y install dirmngrInstall dirmngr Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install dirmngr using aptitude by running the following command:
sudo aptitude -y install dirmngrHow To Uninstall dirmngr on Kali Linux
To uninstall only the dirmngr package we can use the following command:
sudo apt-get remove dirmngrUninstall dirmngr And Its Dependencies
To uninstall dirmngr and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove dirmngrRemove dirmngr Configurations and Data
To remove dirmngr configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge dirmngrRemove 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 dirmngrDependencies
dirmngr have the following dependencies:
- adduser
- gpgconf
- lsb-base
- init-system-helpers
- libassuan0
- libc6
- libgcrypt20
- libgnutls30
- libgpg-error0
- libksba8
- libldap-2.4-2
- libnpth0
References
Summary
In this tutorial we learn how to install dirmngr package on Kali Linux using different package management tools: apt, apt-get and aptitude.