How to Install and Uninstall python-psycopg2 Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 18,2024

1. Install "python-psycopg2" package

Learn how to install python-psycopg2 on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python-psycopg2

2. Uninstall "python-psycopg2" package

In this section, we are going to explain the necessary steps to uninstall python-psycopg2 on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the python-psycopg2 package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python-psycopg2
Priority: optional
Section: python
Installed-Size: 677
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Architecture: amd64
Source: psycopg2
Version: 2.6.1-1build2
Depends: python (<< 2.8), python (>= 2.7~), python:any (>= 2.7.5-5~), libc6 (>= 2.14), libpq5 (>= 9.3~)
Recommends: python-egenix-mxdatetime
Suggests: python-psycopg2-doc
Filename: pool/main/p/psycopg2/python-psycopg2_2.6.1-1build2_amd64.deb
Size: 130996
MD5sum: 5a4d2fde3f72634e676887dc9774dc10
SHA1: 0eed29172938ad74c8f035aa77424ee0aebc8586
SHA256: 265451ea48329a8e297221d024c4e901e742e217a89d3b85f3ab59f83aa0b0e6
Description-en: Python module for PostgreSQL
psycopg is a PostgreSQL database adapter for the Python 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: 650e03ba7ee7667206bfd25f2bcc4ca1
Homepage: http://initd.org/projects/psycopg
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y