How to Install and Uninstall php-pgsql Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 19,2024

1. Install "php-pgsql" package

Please follow the steps below to install php-pgsql on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php-pgsql

2. Uninstall "php-pgsql" package

Please follow the guidance below to uninstall php-pgsql on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove php-pgsql $ sudo apt autoclean && sudo apt autoremove

3. Information about the php-pgsql package on Ubuntu 20.04 LTS (Focal Fossa)

Package: php-pgsql
Source: php-defaults (94+ubuntu20.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.3+94+ubuntu20.04.1+deb.sury.org+2
Depends: php-common, php8.3-pgsql
Filename: pool/main/p/php-defaults/php-pgsql_8.3+94+ubuntu20.04.1+deb.sury.org+2_all.deb
Size: 7344
MD5sum: 8f9c8008a72651ed4c451d20dcd168ee
SHA1: f1ff324c6e2577d0a0b21e452b8c6e061772e884
SHA256: 4b90ed7073442e92fd240bf0cdb5bb2cb95b21947177e2a56086c913a5782b54
Description: PostgreSQL module for PHP [default]
Description-md5: e5da12430337a68eb7d6e3a708facbce

Package: php-pgsql
Architecture: all
Version: 2:7.4+75
Priority: optional
Section: php
Source: php-defaults (75)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 13
Depends: php-common, php7.4-pgsql
Filename: pool/main/p/php-defaults/php-pgsql_7.4+75_all.deb
Size: 2008
MD5sum: 0097788d5c4972f5e1bf8a04ebdf2b02
SHA1: f39ec7a4a3beb592e07fb4bb7425d30cadd68494
SHA256: 3d825273ca396ef83ee0d546d1520cfa54df7be871df5f0161b389bb7904c13c
Description: PostgreSQL module for PHP [default]
Description-md5: 5fcbcc736e803e8055f7a71eb10c2f96