How to Install and Uninstall python3-psycopg2 Package on Debian 11 (Bullseye)

Last updated: November 05,2024

1. Install "python3-psycopg2" package

Learn how to install python3-psycopg2 on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install python3-psycopg2

2. Uninstall "python3-psycopg2" package

This guide covers the steps necessary to uninstall python3-psycopg2 on Debian 11 (Bullseye):

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

3. Information about the python3-psycopg2 package on Debian 11 (Bullseye)

Package: python3-psycopg2
Source: psycopg2
Version: 2.8.6-2
Installed-Size: 441
Maintainer: Debian Python Team
Architecture: amd64
Depends: python3 (<< 3.10), python3 (>= 3.9~), python3:any, libc6 (>= 2.15), libpq5 (>= 10~~)
Suggests: python-psycopg2-doc
Description: Python 3 module for PostgreSQL
Description-md5: 8f5ccf5f38f0965d243851578ccea66a
Homepage: http://initd.org/projects/psycopg
Section: python
Priority: optional
Filename: pool/main/p/psycopg2/python3-psycopg2_2.8.6-2_amd64.deb
Size: 120480
MD5sum: 26e048af5657f2d375f4fa2807415692
SHA256: ff7913486c85de563af85468ad7b546cafed08a0dba5572dc7233e0d988b43fc