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

Last updated: November 22,2024

1. Install "php-memcache" package

This tutorial shows how to install php-memcache on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php-memcache

2. Uninstall "php-memcache" package

Please follow the step by step instructions below to uninstall php-memcache on Ubuntu 18.04 LTS (Bionic Beaver):

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

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

Package: php-memcache
Priority: optional
Section: php
Installed-Size: 27
Maintainer: Debian PHP PECL Maintainers
Architecture: amd64
Version: 8.0+4.0.5.2+3.0.9~20170802.e702b5f9+-7+ubuntu18.04.1+deb.sury.org+10
Suggests: memcached
Depends: php8.1-memcache
Pre-Depends: php-common (>= 2:69~)
Filename: pool/main/p/php-memcache/php-memcache_8.0+4.0.5.2+3.0.9~20170802.e702b5f9+-7+ubuntu18.04.1+deb.sury.org+10_amd64.deb
Size: 18196
MD5sum: 6bd69fb4bdf4417cede4e8f06aa131c5
SHA1: 159213441e72abdf89aca6d520c202b4cf295b7c
SHA256: cbb8c911f7d0f6e6f454343074c955b6db10a064cf06023ef869963f56777270
Description: memcache extension module for PHP
Description-md5: d2ac98f44f310f359463dd42bfbb2873

Package: php-memcache
Architecture: amd64
Version: 3.0.9~20160311.4991c2f-5build2
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: 146
Provides: php7.2-memcache
Depends: php-common (>= 1:7.0+33~), phpapi-20170718, libc6 (>= 2.25), zlib1g (>= 1:1.1.4)
Suggests: memcached
Filename: pool/universe/p/php-memcache/php-memcache_3.0.9~20160311.4991c2f-5build2_amd64.deb
Size: 55404
MD5sum: a03222ba6284ee33000f26d0f5f9aa1f
SHA1: 18f5afe34633e8aa163560709e8b015024626377
SHA256: b769a59a71fdbccde3e228e027bf4c6147cc2620ca5194216266753eed7dcbce
Homepage: https://github.com/websupport-sk/pecl-memcache
Description: memcache extension module for PHP
Description-md5: d2ac98f44f310f359463dd42bfbb2873