How to Install and Uninstall php-solr Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: April 25,2024

1. Install "php-solr" package

This is a short guide on how to install php-solr on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php-solr

2. Uninstall "php-solr" package

This guide covers the steps necessary to uninstall php-solr on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the php-solr package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: php-solr
Priority: optional
Section: php
Installed-Size: 15
Maintainer: Debian PHP PECL Maintainers
Architecture: amd64
Version: 2.5.1+2.4.0-10+ubuntu18.04.1+deb.sury.org+3
Depends: php8.1-solr, php-curl, php-xml
Pre-Depends: php-common (>= 2:69~)
Filename: pool/main/p/php-solr/php-solr_2.5.1+2.4.0-10+ubuntu18.04.1+deb.sury.org+3_amd64.deb
Size: 5904
MD5sum: 70e4323a8678e75150a1e989fd135d46
SHA1: fd3c98aa565152ed6c8ab85ae20f16de0c062e0e
SHA256: effc79290df9283e9e54135217493733e1d2fabfa1bedf6397a6ed43098c03a7
Description: PHP extension for communicating with Apache Solr server
Description-md5: d404cb885f81e4bef1b57c8bb1c01e9b

Package: php-solr
Architecture: amd64
Version: 2.4.0-5build1
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: 326
Provides: php7.2-solr
Depends: php-curl, php-common (>= 1:7.0+33~), phpapi-20170718, libc6 (>= 2.14), libcurl4 (>= 7.16.2), libxml2 (>= 2.7.4)
Filename: pool/universe/p/php-solr/php-solr_2.4.0-5build1_amd64.deb
Size: 78048
MD5sum: 8123a0b08f3f0a32216d01cbfb286aec
SHA1: 634520446cab2736cc8714c281ea6e725ad15eb1
SHA256: a949e7e2d9b482a5744eb2acb74d7e4b641e0ed96470d0d83e515d36fc846cff
Homepage: http://pecl.php.net/package/solr
Description: PHP extension for communicating with Apache Solr server
Description-md5: d404cb885f81e4bef1b57c8bb1c01e9b