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

Last updated: December 26,2024

1. Install "php7.1-mongodb" package

Please follow the guidance below to install php7.1-mongodb on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php7.1-mongodb

2. Uninstall "php7.1-mongodb" package

Please follow the instructions below to uninstall php7.1-mongodb on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove php7.1-mongodb $ sudo apt autoclean && sudo apt autoremove

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

Package: php7.1-mongodb
Source: php-mongodb-1-11
Priority: optional
Section: php
Installed-Size: 1469
Maintainer: Debian PHP PECL Maintainers
Architecture: amd64
Version: 1:1.11.1-1+ubuntu20.04.1+deb.sury.org+1
Replaces: php-mongodb (<< 1:1.11.1-1+ubuntu20.04.1+deb.sury.org+1~)
Provides: php-mongodb
Depends: ucf, php7.1-common, phpapi-20160303, libc6 (>= 2.17), libsasl2-2 (>= 2.1.27+dfsg), libsnappy1v5 (>= 1.1.8), libssl1.1 (>= 1.1.1), libzstd1 (>= 1.3.2), zlib1g (>= 1:1.2.0)
Pre-Depends: php-common (>= 2:69~)
Breaks: php-mongodb (<< 1:1.11.1-1+ubuntu20.04.1+deb.sury.org+1~)
Filename: pool/main/p/php-mongodb-1-11/php7.1-mongodb_1.11.1-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb
Size: 470072
MD5sum: db12a0bf7655439f9734ce62d19ee87e
SHA1: fc0425046a50c3978f5183a547f315def9197e8e
SHA256: 0827f9b584365f5defb8101b73e37e943d389bb63ec4425290968e798eacd13c
Description: MongoDB driver for PHP
Description-md5: 019af190a34e0d969ac1807b7a0e3f5a