How to Install and Uninstall python3-psycopg2 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 17,2024

1. Install "python3-psycopg2" package

This guide covers the steps necessary to install python3-psycopg2 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install python3-psycopg2

2. Uninstall "python3-psycopg2" package

Please follow the instructions below to uninstall python3-psycopg2 on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the python3-psycopg2 package on Ubuntu 20.04 LTS (Focal Fossa)

Package: python3-psycopg2
Architecture: amd64
Version: 2.8.4-2
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: 440
Depends: python3 (<< 3.9), python3 (>= 3.8~), python3:any, libc6 (>= 2.15), libpq5 (>= 10~~)
Suggests: python-psycopg2-doc
Filename: pool/main/p/psycopg2/python3-psycopg2_2.8.4-2_amd64.deb
Size: 111912
MD5sum: 88a00e440fb31db0ee507e1aad3bc76a
SHA1: b988bf489f59ca056b33a5708c6557d842c7c5e3
SHA256: 7179d44e8b4cb7578cb3dd9f5e9aabec587634386181353b53174efa855b10d7
Homepage: http://initd.org/projects/psycopg
Description: Python 3 module for PostgreSQL
Description-md5: 8f5ccf5f38f0965d243851578ccea66a