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

Last updated: July 18,2024

1. Install "php-solr" package

Please follow the guidelines below to install php-solr on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php-solr

2. Uninstall "php-solr" package

This tutorial shows how to uninstall php-solr on Ubuntu 20.04 LTS (Focal Fossa):

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

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

Package: php-solr
Priority: optional
Section: php
Installed-Size: 16
Maintainer: Debian PHP PECL Maintainers
Architecture: amd64
Version: 2.6.0++-1+ubuntu20.04.1+deb.sury.org+2
Depends: php8.3-solr, php-curl, php-xml
Pre-Depends: php-common (>= 2:69~)
Filename: pool/main/p/php-solr/php-solr_2.6.0++-1+ubuntu20.04.1+deb.sury.org+2_amd64.deb
Size: 6236
MD5sum: 8d40af96b0552c9bc80fe748454be7fc
SHA1: 7e1b67869f3910dee9dbf551efd831d006288e86
SHA256: 87b3fc58c4d77dc953fdcd8686a6b7e1c1a382da235ad2968d683c2192084024
Description: PHP extension for communicating with Apache Solr server
Description-md5: d404cb885f81e4bef1b57c8bb1c01e9b

Package: php-solr
Architecture: amd64
Version: 2.5.0+2.4.0-4build1
Priority: optional
Section: universe/web
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP PECL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 352
Provides: php7.4-solr
Pre-Depends: php-common (>= 2:69~)
Depends: php-curl, phpapi-20190902, libc6 (>= 2.14), libcurl4 (>= 7.16.2), libxml2 (>= 2.7.4)
Filename: pool/universe/p/php-solr/php-solr_2.5.0+2.4.0-4build1_amd64.deb
Size: 84836
MD5sum: 81e88d9e08a72f5ed2300974c8d577ab
SHA1: ffca53cc1e502aa9729a9d63eda34cf47606cdc0
SHA256: aa8d1377881804c12073be84577752211209bcb3ae914f70554137194c66eaca
Homepage: http://pecl.php.net/package/solr
Description: PHP extension for communicating with Apache Solr server
Description-md5: d404cb885f81e4bef1b57c8bb1c01e9b