How To Install gnupg on Ubuntu 20.04
Introduction
In this tutorial we learn how to install gnupg
on Ubuntu 20.04.
What is gnupg
gnupg is:
GnuPG is GNU’s tool for secure communication and data storage. It can be used to encrypt data and to create digital signatures. It includes an advanced key management facility and is compliant with the proposed OpenPGP Internet standard as described in RFC4880.
This package contains the full suite of GnuPG tools for cryptographic communications and data storage. 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: gnupg Architecture: all Version: 2.2.19-3ubuntu2 Multi-Arch: foreign Priority: optional Section: utils Source: gnupg2 Origin: Ubuntu Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com Original-Maintainer: Debian GnuPG Maintainers pkg-gnupg-maint@lists.alioth.debian.org Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 413 Depends: dirmngr (« 2.2.19-3ubuntu2.1~), dirmngr (>= 2.2.19-3ubuntu2), gnupg-l10n (= 2.2.19-3ubuntu2), gnupg-utils (« 2.2.19-3ubuntu2.1~), gnupg-utils (>= 2.2.19-3ubuntu2), gpg (« 2.2.19-3ubuntu2.1~), gpg (>= 2.2.19-3ubuntu2), gpg-agent (« 2.2.19-3ubuntu2.1~), gpg-agent (>= 2.2.19-3ubuntu2), gpg-wks-client (« 2.2.19-3ubuntu2.1~), gpg-wks-client (>= 2.2.19-3ubuntu2), gpg-wks-server (« 2.2.19-3ubuntu2.1~), gpg-wks-server (>= 2.2.19-3ubuntu2), gpgsm (« 2.2.19-3ubuntu2.1~), gpgsm (>= 2.2.19-3ubuntu2), gpgv (« 2.2.19-3ubuntu2.1~), gpgv (>= 2.2.19-3ubuntu2) Suggests: parcimonie, xloadimage Breaks: debsig-verify (« 0.15), dirmngr (« 2.2.19-3ubuntu2), gnupg2 (« 2.1.11-7+exp1), libgnupg-interface-perl (« 0.52-3), libgnupg-perl (<= 0.19-1), libmail-gnupg-perl (<= 0.22-1), monkeysphere (« 0.38~), php-crypt-gpg (<= 1.4.1-1), python-apt (<= 1.1.0~beta4), python-gnupg (« 0.3.8-3), python3-apt (<= 1.1.0~beta4) Replaces: gnupg2 (« 2.1.11-7+exp1) Filename: pool/main/g/gnupg2/gnupg_2.2.19-3ubuntu2_all.deb Size: 258936 MD5sum: 1d2ae8eda83b4f92745e1bda6982b1ab SHA1: 601dfbf11bf57821a7b7a82dfa48c551f8b8101a SHA256: e17824b835640c940a023f88cbc8f5a4b2c02e1b38cf91fb51876c6de2d82e4d Homepage: https://www.gnupg.org/ Description-en: GNU privacy guard - a free PGP replacement GnuPG is GNU’s tool for secure communication and data storage. It can be used to encrypt data and to create digital signatures. It includes an advanced key management facility and is compliant with the proposed OpenPGP Internet standard as described in RFC4880.
This package contains the full suite of GnuPG tools for cryptographic communications and data storage. 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 gnupg
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 gnupg Using apt-get
Update apt database with apt-get
using the following command.
After updating apt database, We can install gnupg
using apt-get
by running the following command:
Install gnupg Using apt
Update apt database with apt
using the following command.
After updating apt database, We can install gnupg
using apt
by running the following command:
Install gnupg 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.
After updating apt database, We can install gnupg
using aptitude
by running the following command:
How To Uninstall gnupg on Ubuntu 20.04
To uninstall only the gnupg
package we can use the following command:
Uninstall gnupg And Its Dependencies
To uninstall gnupg
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
Remove gnupg Configurations and Data
To remove gnupg
configuration and data from Ubuntu 20.04 we can use the following command:
Remove gnupg configuration, data, and all of its dependencies
We can use the following command to remove gnupg
configurations, data and all of its dependencies, we can use the following command:
References
Summary
In this tutorial we learn how to install gnupg
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.