How to Install and Uninstall php-pgsql Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: November 07,2024

1. Install "php-pgsql" package

Please follow the steps below to install php-pgsql on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php-pgsql

2. Uninstall "php-pgsql" package

Learn how to uninstall php-pgsql on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the php-pgsql package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: php-pgsql
Source: php-defaults (92+ubuntu18.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.1+92+ubuntu18.04.1+deb.sury.org+2
Depends: php-common, php8.1-pgsql
Filename: pool/main/p/php-defaults/php-pgsql_8.1+92+ubuntu18.04.1+deb.sury.org+2_all.deb
Size: 7296
MD5sum: 78381644ea2ad0347030b9f7b8971590
SHA1: d613fbdf3af5e915325c4825e2ec61d8e39ab3f3
SHA256: 95ee484f4ff0f53c0cad967f0585b85e73f757bcde6da6b5df9ccf5a465d1dcd
Description: PostgreSQL module for PHP [default]
Description-md5: 6b8eed5108325175d3a8cde2aae5a707

Package: php-pgsql
Architecture: all
Version: 1:7.2+60ubuntu1
Priority: optional
Section: php
Source: php-defaults (60ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12
Depends: php-common, php7.2-pgsql
Filename: pool/main/p/php-defaults/php-pgsql_7.2+60ubuntu1_all.deb
Size: 2008
MD5sum: f50dec8ae6224ef70979e0c42868592c
SHA1: 129bce340cb0069c2bd4731279bd7af589f5d99b
SHA256: 297b03ee2cd61c634cd5c05148ca4f67495114807fd38b81b04e81801be988fe
Description: PostgreSQL module for PHP [default]
Description-md5: 8bf0a41555a01050d5dbe20b76666c2f
Supported: 5y