How to Install and Uninstall php-pgsql Package on Debian 12 (Bookworm)

Last updated: December 23,2024

1. Install "php-pgsql" package

Learn how to install php-pgsql on Debian 12 (Bookworm)

$ 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 12 (Bookworm):

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

3. Information about the php-pgsql package on Debian 12 (Bookworm)

Package: php-pgsql
Source: php-defaults (94+0~20240205.51+debian12~1.gbp6faa2e)
Version: 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 10
Depends: php-common, php8.3-pgsql
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/php-pgsql_8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb
Size: 3860
SHA256: 4ac486a934e3d97378a934d83c96147e717e6aad79f22c466f1318adb821beec
SHA1: 10e679313fe83647c0e59714bbf59134814dd91f
MD5sum: 3a2351ad69a048478a83dec176f42e8f
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.3).
Description-md5: e5da12430337a68eb7d6e3a708facbce

Package: php-pgsql
Source: php-defaults (93)
Version: 2:8.2+93
Installed-Size: 10
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php-common, php8.2-pgsql
Description: PostgreSQL module for PHP [default]
Description-md5: e91462ace4aecc92e622fe97cf12438e
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php-pgsql_8.2+93_all.deb
Size: 3664
MD5sum: 3ba055a4db7f94a8debab3fed98cc72a
SHA256: 4685d2a5e90a7e5ce170f126c2a263d5d4b4f3af2b2dc88e86f58b55cbf2eca4