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

Last updated: June 23,2024

1. Install "php8.1-pgsql" package

This guide covers the steps necessary to install php8.1-pgsql on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php8.1-pgsql

2. Uninstall "php8.1-pgsql" package

Please follow the instructions below to uninstall php8.1-pgsql on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove php8.1-pgsql $ sudo apt autoclean && sudo apt autoremove

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

Package: php8.1-pgsql
Source: php8.1
Priority: optional
Section: php
Installed-Size: 216
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 8.1.9-1+ubuntu18.04.1+deb.sury.org+1
Provides: php-pdo-pgsql, php-pgsql, php8.1-pdo-pgsql
Depends: php-common (>= 1:81~), ucf, php8.1-common (= 8.1.9-1+ubuntu18.04.1+deb.sury.org+1), libc6 (>= 2.14), libpq5 (>= 9.3~)
Filename: pool/main/p/php8.1/php8.1-pgsql_8.1.9-1+ubuntu18.04.1+deb.sury.org+1_amd64.deb
Size: 57960
MD5sum: 4c436e45ce3abef8b4a0e61c4973a3a7
SHA1: 238ae51fb83feaf65105295a6dca0ce62ac3bf8c
SHA256: 0210e196801eb466a76be7d58587f11e1aa3b0d72aaeeb9db8f9e1fbb0f4c080
Description: PostgreSQL module for PHP
Description-md5: e20af8e9fbc873e9bd5a36fc03e72ee6