How to Install and Uninstall php-mongodb Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 19,2024

1. Install "php-mongodb" package

Learn how to install php-mongodb on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php-mongodb

2. Uninstall "php-mongodb" package

Please follow the step by step instructions below to uninstall php-mongodb on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the php-mongodb package on Ubuntu 20.04 LTS (Focal Fossa)

Package: php-mongodb
Priority: optional
Section: php
Installed-Size: 21
Maintainer: Debian PHP PECL Maintainers
Architecture: amd64
Version: 1.17.0-1+ubuntu20.04.1+deb.sury.org+1
Depends: ucf, php8.3-mongodb
Pre-Depends: php-common (>= 2:69~)
Filename: pool/main/p/php-mongodb/php-mongodb_1.17.0-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb
Size: 7696
MD5sum: f7eafc45605d001b923bedff9ff61131
SHA1: 74b059bad6763bbd354b23a2aee484c0db1bbd16
SHA256: de624002c769941cd949549e95bc2e4752b0dfe988b18c8d20f7da8606788e9f
Description: MongoDB driver for PHP
Description-md5: 019af190a34e0d969ac1807b7a0e3f5a

Package: php-mongodb
Architecture: amd64
Version: 1.6.1-4build1
Priority: optional
Section: universe/php
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP PECL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1178
Provides: php7.4-mongodb
Pre-Depends: php-common (>= 2:69~)
Depends: ucf, phpapi-20190902, libc6 (>= 2.17), libsasl2-2 (>= 2.1.27+dfsg), libssl1.1 (>= 1.1.0)
Filename: pool/universe/p/php-mongodb/php-mongodb_1.6.1-4build1_amd64.deb
Size: 387404
MD5sum: e7b9b7b324593c3c2fd43c782ea546de
SHA1: 0509623f9a07facfb5d54713a5746f525f352716
SHA256: 55f9c091a4532791ef63d53673a8fb7e7ecf02c10c4a2213fd344a6257cf0f6a
Homepage: https://pecl.php.net/package/mongodb
Description: MongoDB driver for PHP
Description-md5: 019af190a34e0d969ac1807b7a0e3f5a