How to Install and Uninstall php-pgsql Package on Debian 11 (Bullseye)

Last updated: May 18,2024

1. Install "php-pgsql" package

Here is a brief guide to show you how to install php-pgsql on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install php-pgsql

2. Uninstall "php-pgsql" package

This guide covers the steps necessary to uninstall php-pgsql on Debian 11 (Bullseye):

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

3. Information about the php-pgsql package on Debian 11 (Bullseye)

Package: php-pgsql
Source: php-defaults (92+0~20220117.43+debian11~1.gbpe0d14e)
Version: 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 14
Depends: php-common, php8.1-pgsql
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/php-pgsql_8.1+92+0~20220117.43+debian11~1.gbpe0d14e_all.deb
Size: 7428
SHA256: 1e927ca8eafc479a520ae72525d7e7e75001999929c57f2c9b4e7b4e242b458c
SHA1: 50a6ecd80d697e2aa2a9d1e1e017a6031e78dff1
MD5sum: d0cd8e9e75441bb8bf7668492e2368c2
Description: PostgreSQL module for PHP [default]
This package provides a PostgreSQL module for PHP.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
.
This package is a dependency package, which depends on Debian's default
PHP version (currently 8.1).
Description-md5: 6b8eed5108325175d3a8cde2aae5a707

Package: php-pgsql
Source: php-defaults (76)
Version: 2:7.4+76
Installed-Size: 13
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php-common, php7.4-pgsql
Description: PostgreSQL module for PHP [default]
Description-md5: 5fcbcc736e803e8055f7a71eb10c2f96
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php-pgsql_7.4+76_all.deb
Size: 6368
MD5sum: 50d5130ac8bc8653cd086deaae91a39a
SHA256: baa06871d12e8b67009caaa01701d71a1d8fdb47558852361cb5f405013ac638