How to Install and Uninstall python3-psycopg2 Package on Ubuntu 22.10 (Kinetic Kudu)

Last updated: January 10,2025

1. Install "python3-psycopg2" package

Please follow the steps below to install python3-psycopg2 on Ubuntu 22.10 (Kinetic Kudu)

$ sudo apt update $ sudo apt install python3-psycopg2

2. Uninstall "python3-psycopg2" package

This is a short guide on how to uninstall python3-psycopg2 on Ubuntu 22.10 (Kinetic Kudu):

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

3. Information about the python3-psycopg2 package on Ubuntu 22.10 (Kinetic Kudu)

Package: python3-psycopg2
Architecture: amd64
Version: 2.9.3-1
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: 460
Depends: python3 (<< 3.11), python3 (>= 3.10~), python3:any, libc6 (>= 2.15), libpq5 (>= 10~~)
Suggests: python-psycopg2-doc
Filename: pool/main/p/psycopg2/python3-psycopg2_2.9.3-1_amd64.deb
Size: 129002
MD5sum: 62e811b378e7443242c88f8f71e82b4b
SHA1: fbe5da975c4ba058012965583aa1772e6aab1968
SHA256: bb0b95577825ec1594cdf226429935279067ce22d1e56078a49e989cb108fc89
SHA512: 43a1cf2d570bf1f5b91898328bdfa44da2f9477316aab487d66eb352df5e7e7fc66b9227f501f89da81e5d590eabf21efd327dbebf1387a695e78944769bc988
Homepage: http://initd.org/projects/psycopg
Description: Python 3 module for PostgreSQL
Description-md5: 8f5ccf5f38f0965d243851578ccea66a