How To Install postgresql-plperl-12 on Ubuntu 20.04

In this tutorial we learn how to install postgresql-plperl-12 on Ubuntu 20.04. postgresql-plperl-12 is PL/Perl procedural language for PostgreSQL 12 PL/Perl procedural language for PostgreSQL 12

Introduction

In this tutorial we learn how to install postgresql-plperl-12 on Ubuntu 20.04.

What is postgresql-plperl-12

postgresql-plperl-12 is:

PL/Perl enables an SQL developer to write procedural language functions for PostgreSQL 12 in Perl. You need this package if you have any PostgreSQL 12 functions that use the languages plperl or plperlu.

PostgreSQL is an object-relational SQL database management system.

Package: postgresql-plperl-12 Architecture: amd64 Version: 12.2-4 Priority: optional Section: universe/database Source: postgresql-12 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian PostgreSQL Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 340 Provides: postgresql-plperl Depends: perl, postgresql-12 (= 12.2-4), libc6 (>= 2.4), libperl5.30 (>= 5.30.0) Breaks: postgresql-12 (« 12~beta4) Replaces: postgresql-12 (« 12~beta4) Filename: pool/universe/p/postgresql-12/postgresql-plperl-12_12.2-4_amd64.deb Size: 63912 MD5sum: 1a0385093a13d92fcd59042d3681a1d3 SHA1: 6fae6318413535be184630b49915f75c74a65bdd SHA256: ac9ec2b8318a7ea1c907eac3cb2c254537b657dcf0b2a1558bde8f238a15df6f Homepage: http://www.postgresql.org/ Description-en: PL/Perl procedural language for PostgreSQL 12 PL/Perl enables an SQL developer to write procedural language functions for PostgreSQL 12 in Perl. You need this package if you have any PostgreSQL 12 functions that use the languages plperl or plperlu.

PostgreSQL is an object-relational SQL database management system.

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

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

sudo apt-get update

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

sudo apt-get -y install postgresql-plperl-12

Install postgresql-plperl-12 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install postgresql-plperl-12 using apt by running the following command:

sudo apt -y install postgresql-plperl-12

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

sudo aptitude -y install postgresql-plperl-12

How To Uninstall postgresql-plperl-12 on Ubuntu 20.04

To uninstall only the postgresql-plperl-12 package we can use the following command:

sudo apt-get remove postgresql-plperl-12

Uninstall postgresql-plperl-12 And Its Dependencies

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

sudo apt-get -y autoremove postgresql-plperl-12

Remove postgresql-plperl-12 Configurations and Data

To remove postgresql-plperl-12 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge postgresql-plperl-12

Remove postgresql-plperl-12 configuration, data, and all of its dependencies

We can use the following command to remove postgresql-plperl-12 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge postgresql-plperl-12

References

Summary

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