How To Install postgresql-plpython3-12 on Ubuntu 20.04

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

Introduction

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

What is postgresql-plpython3-12

postgresql-plpython3-12 is:

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

PostgreSQL is an object-relational SQL database management system.

Package: postgresql-plpython3-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: 400 Provides: postgresql-plpython3 Depends: postgresql-12 (= 12.2-4), libc6 (>= 2.14), libpython3.8 (>= 3.8.2) Breaks: postgresql-12 (« 12~beta4) Replaces: postgresql-12 (« 12~beta4) Filename: pool/universe/p/postgresql-12/postgresql-plpython3-12_12.2-4_amd64.deb Size: 71832 MD5sum: fa7ecee445bb74ed56b76991d5fa1644 SHA1: 848783c6bce2847e661cea32924600a58ea357c5 SHA256: fc7d9db4594daeeb19e696dbd80da239ef2a1cc6f3befbdacf06d8cd55ea78c3 Homepage: http://www.postgresql.org/ Description-en: PL/Python 3 procedural language for PostgreSQL 12 PL/Python 3 enables an SQL developer to write procedural language functions for PostgreSQL 12 in Python 3. You need this package if you have any PostgreSQL 12 functions that use the languages plpython3 or plpython3u.

PostgreSQL is an object-relational SQL database management system.

There are three methods to install postgresql-plpython3-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-plpython3-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-plpython3-12 using apt-get by running the following command:

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

Install postgresql-plpython3-12 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install postgresql-plpython3-12

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

sudo aptitude -y install postgresql-plpython3-12

How To Uninstall postgresql-plpython3-12 on Ubuntu 20.04

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

sudo apt-get remove postgresql-plpython3-12

Uninstall postgresql-plpython3-12 And Its Dependencies

To uninstall postgresql-plpython3-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-plpython3-12

Remove postgresql-plpython3-12 Configurations and Data

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

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

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

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

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

References

Summary

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