How to Install and Uninstall php-pgsql Package on Ubuntu 24.04 LTS (Noble Numbat)

Last updated: November 22,2024

1. Install "php-pgsql" package

This guide let you learn how to install php-pgsql on Ubuntu 24.04 LTS (Noble Numbat)

$ sudo apt update $ sudo apt install php-pgsql

2. Uninstall "php-pgsql" package

Please follow the steps below to uninstall php-pgsql on Ubuntu 24.04 LTS (Noble Numbat):

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

3. Information about the php-pgsql package on Ubuntu 24.04 LTS (Noble Numbat)

Package: php-pgsql
Architecture: all
Version: 2:8.3+93ubuntu2
Priority: optional
Section: php
Source: php-defaults (93ubuntu2)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 11
Depends: php-common, php8.3-pgsql
Filename: pool/main/p/php-defaults/php-pgsql_8.3+93ubuntu2_all.deb
Size: 1846
MD5sum: 779a1c0c0ee34dd9ea6430c994d05345
SHA1: 4ffa6372c992a304a3212db89b745b74b45fea32
SHA256: 2d4186245700fe581f8fde30520446281e73b892bc88e77d8c39dc9220aba178
SHA512: b2f4fb2a73d0cdede4de0293cee237a1f8056fdb32a2db28bda282837bba773a50507b37c8d881f899dc29f52fc5744e0b43797b2956aad3cdad65cfa2f019e1
Description: PostgreSQL module for PHP [default]
Description-md5: e5da12430337a68eb7d6e3a708facbce