How to Install and Uninstall python3-psycopg2 Package on Ubuntu 21.10 (Impish Indri)

Last updated: December 23,2024

1. Install "python3-psycopg2" package

Please follow the guidance below to install python3-psycopg2 on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install python3-psycopg2

2. Uninstall "python3-psycopg2" package

Please follow the step by step instructions below to uninstall python3-psycopg2 on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove python3-psycopg2 $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-psycopg2 package on Ubuntu 21.10 (Impish Indri)

Package: python3-psycopg2
Architecture: amd64
Version: 2.8.6-2build1
Priority: optional
Section: python
Source: psycopg2
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 449
Depends: python3 (<< 3.10), python3 (>= 3.9~), python3:any, libc6 (>= 2.15), libpq5 (>= 10~~)
Suggests: python-psycopg2-doc
Filename: pool/main/p/psycopg2/python3-psycopg2_2.8.6-2build1_amd64.deb
Size: 125434
MD5sum: 91b09d4db85e10387437147dbf896cc5
SHA1: 3fa05e2850c1caf230ee4a2f42cc86f9a16dc0b0
SHA256: 76c6819df3ad17cba60b8948a34dc21538984380340964228a51ee2afb6b3996
SHA512: 3575205e27e05f3380b86f4fec960b722d3c07dbe41ba6aa759699ba4f4bd40aa3a20b8be933c97fd9c0e15a84a9dbdab115816cd6cf53c934173e4db31bda36
Homepage: http://initd.org/projects/psycopg
Description-en: Python 3 module for PostgreSQL
psycopg is a PostgreSQL database adapter for the Python3 programming language
(just like pygresql and popy.) This is version 2, a complete rewrite of the
original code to provide new-style classes for connection and cursor objects
and other sweet candies. Like the original, psycopg 2 was written with the
aim of being very small and fast, and stable as a rock.
.
psycopg is different from the other database adapter because it was designed
for heavily multi-threaded applications that create and destroy lots of
cursors and make a conspicuous number of concurrent INSERTs or UPDATEs.
psycopg 2 also provides full asynchronous operations for the really brave
programmer.
.
The main advantages of psycopg2 are that it supports the full Python DBAPI-2.0
and being thread safe at level 2. It also includes some extensions to the
standard DBAPI-2.0 to allow for better thread performance.
Description-md5: 8f5ccf5f38f0965d243851578ccea66a