How To Install php-pecl-memcache.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install php-pecl-memcache.x86_64 on Amazon Linux 2.
What is php-pecl-memcache.x86_64
Memcached is a caching daemon designed especially for dynamic web applications to decrease database load by storing objects in memory. This extension allows you to work with memcached through handy OO and procedural interfaces. Memcache can be used as a PHP session handler.
We can use yum to install php-pecl-memcache.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-memcache.x86_64.
Install php-pecl-memcache.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install php-pecl-memcache.x86_64 using yum by running the following command:
sudo yum -y install php-pecl-memcache.x86_64
How To Uninstall php-pecl-memcache.x86_64 on Amazon Linux 2
To uninstall only the php-pecl-memcache.x86_64 package we can use the following command:
sudo yum remove php-pecl-memcache.x86_64
php-pecl-memcache.x86_64 Package Contents on Amazon Linux 2
/etc/php.d/memcache.ini
/usr/lib64/php/modules/memcache.so
/usr/share/doc/php-pecl-memcache-3.0.8
/usr/share/doc/php-pecl-memcache-3.0.8/CHANGELOG
/usr/share/doc/php-pecl-memcache-3.0.8/CREDITS
/usr/share/doc/php-pecl-memcache-3.0.8/LICENSE
/usr/share/doc/php-pecl-memcache-3.0.8/README
/usr/share/doc/php-pecl-memcache-3.0.8/example.php
/usr/share/doc/php-pecl-memcache-3.0.8/memcache.php
/var/lib/pear/pkgxml/php-pecl-memcache.xml
References
Summary
In this tutorial we learn how to install php-pecl-memcache.x86_64 on Amazon Linux 2 using yum.