How to Install and Uninstall php-opcache.x86_64 Package on Amazon Linux 2

Last updated: May 06,2024

1. Install "php-opcache.x86_64" package

Please follow the instructions below to install php-opcache.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install php-opcache.x86_64

2. Uninstall "php-opcache.x86_64" package

This is a short guide on how to uninstall php-opcache.x86_64 on Amazon Linux 2:

$ sudo yum remove php-opcache.x86_64 $ sudo yum autoremove

3. Information about the php-opcache.x86_64 package on Amazon Linux 2

Loaded plugins: ovl, priorities
Available Packages
Name : php-opcache
Arch : x86_64
Version : 7.4.28
Release : 1.amzn2
Size : 317 k
Repo : amzn2extra-php7.4/2/x86_64
Summary : The Zend OPcache
URL : http://www.php.net/
License : PHP
Description : The Zend OPcache provides faster PHP execution through opcode
: caching and optimization. It improves PHP performance by storing
: precompiled script bytecode in the shared memory. This eliminates
: the stages of reading code from the disk and compiling it on
: future access. In addition, it applies a few bytecode optimization
: patterns that make code execution faster.