How to Install and Uninstall php-pgsql Package on Ubuntu 22.10 (Kinetic Kudu)

Last updated: May 08,2024

1. Install "php-pgsql" package

Please follow the steps below to install php-pgsql on Ubuntu 22.10 (Kinetic Kudu)

$ sudo apt update $ sudo apt install php-pgsql

2. Uninstall "php-pgsql" package

This tutorial shows how to uninstall php-pgsql on Ubuntu 22.10 (Kinetic Kudu):

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

3. Information about the php-pgsql package on Ubuntu 22.10 (Kinetic Kudu)

Package: php-pgsql
Architecture: all
Version: 2:8.1+92ubuntu1
Priority: optional
Section: php
Source: php-defaults (92ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 14
Depends: php-common, php8.1-pgsql
Filename: pool/main/p/php-defaults/php-pgsql_8.1+92ubuntu1_all.deb
Size: 1838
MD5sum: 16658193e2b6f0a119d22f1d4d0d06f5
SHA1: 1e97018926f2fb9be7b36dca31c5939757c23502
SHA256: d8678d72953333cbb383b9d850fe3975c5c5f04ff6bf3dd221aa366265fbac20
SHA512: d61e46683a94834f39f68de31927a0cdaeb35021acf9342c7c05e14b9a6efe4a815d280845e97763b493c68791d4e704f9a0fdc79f12b878ca25a600cfbae453
Description: PostgreSQL module for PHP [default]
Description-md5: 6b8eed5108325175d3a8cde2aae5a707