How To Install libpgp-sign-perl on Ubuntu 18.04

In this tutorial we learn how to install libpgp-sign-perl on Ubuntu 18.04. libpgp-sign-perl is Perl module to create detached PGP signatures

Introduction

In this tutorial we learn how to install libpgp-sign-perl on Ubuntu 18.04.

What is libpgp-sign-perl

libpgp-sign-perl is:

PGP::Sign creates and checks detached PGP signatures for textual data using GnuPG. Other PGP implementations are also supported with run-time configuration. Secret key passphrases are passed via a pipe, and no temporary files are required for signature generation (but are for signature verification).

There are three methods to install libpgp-sign-perl on Ubuntu 18.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 libpgp-sign-perl Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libpgp-sign-perl

Install libpgp-sign-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libpgp-sign-perl using apt by running the following command:

sudo apt -y install libpgp-sign-perl

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

sudo aptitude -y install libpgp-sign-perl

How To Uninstall libpgp-sign-perl on Ubuntu 18.04

To uninstall only the libpgp-sign-perl package we can use the following command:

sudo apt-get remove libpgp-sign-perl

Uninstall libpgp-sign-perl And Its Dependencies

To uninstall libpgp-sign-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libpgp-sign-perl

Remove libpgp-sign-perl Configurations and Data

To remove libpgp-sign-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libpgp-sign-perl

Remove libpgp-sign-perl configuration, data, and all of its dependencies

We can use the following command to remove libpgp-sign-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libpgp-sign-perl

References

Summary

In this tutorial we learn how to install libpgp-sign-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.