How to Install and Uninstall python-psycopg2 Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: May 18,2024

1. Install "python-psycopg2" package

Please follow the guidance below to install python-psycopg2 on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install python-psycopg2

2. Uninstall "python-psycopg2" package

Please follow the steps below to uninstall python-psycopg2 on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the python-psycopg2 package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: python-psycopg2
Architecture: amd64
Version: 2.7.4-1
Priority: optional
Section: python
Source: psycopg2
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 830
Depends: python (<< 2.8), python (>= 2.7~), python:any (<< 2.8), python:any (>= 2.7.5-5~), libc6 (>= 2.15), libpq5 (>= 9.3~)
Recommends: python-egenix-mxdatetime
Suggests: python-psycopg2-doc
Filename: pool/main/p/psycopg2/python-psycopg2_2.7.4-1_amd64.deb
Size: 154612
MD5sum: 6f7db64b9604a43554a76f0e722be439
SHA1: 271889ea015969d661df46a80b7f25f55209e982
SHA256: da3dadd0000b2de6e747d3d5078d207e7b9bf8d726b1bca6ea61945af465334e
Homepage: http://initd.org/projects/psycopg
Description: Python module for PostgreSQL
Description-md5: 650e03ba7ee7667206bfd25f2bcc4ca1
Supported: 5y