How To Install php-laminas-memory on Fedora 36

In this tutorial we learn how to install php-laminas-memory in Fedora 36. php-laminas-memory is Laminas Framework Memory component

Introduction

In this tutorial we learn how to install php-laminas-memory on Fedora 36.

What is php-laminas-memory

The Laminas\Memory component is intended to manage data in an environment with limited memory. Memory objects (memory containers) are generated by memory manager by request and transparently swapped/loaded when it’s necessary. For example, if creating or loading a managed object would cause the total memory usage to exceed the limit you specify, some managed objects are copied to cache storage outside of memory. In this way, the total memory used by managed objects does not exceed the limit you need to enforce. Documentation

We can use yum or dnf to install php-laminas-memory on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-laminas-memory.

Install php-laminas-memory on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install php-laminas-memory using dnf by running the following command:

sudo dnf -y install php-laminas-memory

Install php-laminas-memory on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install php-laminas-memory using yum by running the following command:

sudo yum -y install php-laminas-memory

How To Uninstall php-laminas-memory on Fedora 36

To uninstall only the php-laminas-memory package we can use the following command:

sudo dnf remove php-laminas-memory

php-laminas-memory Package Contents on Fedora 36

/usr/share/doc/php-laminas-memory
/usr/share/doc/php-laminas-memory/COPYRIGHT.md
/usr/share/doc/php-laminas-memory/README.md
/usr/share/doc/php-laminas-memory/composer.json
/usr/share/licenses/php-laminas-memory
/usr/share/licenses/php-laminas-memory/LICENSE
/usr/share/php/Laminas/Memory
/usr/share/php/Laminas/Memory/Container
/usr/share/php/Laminas/Memory/Container/AbstractContainer.php
/usr/share/php/Laminas/Memory/Container/AccessController.php
/usr/share/php/Laminas/Memory/Container/ContainerInterface.php
/usr/share/php/Laminas/Memory/Container/Locked.php
/usr/share/php/Laminas/Memory/Container/Movable.php
/usr/share/php/Laminas/Memory/Exception
/usr/share/php/Laminas/Memory/Exception/ExceptionInterface.php
/usr/share/php/Laminas/Memory/Exception/InvalidArgumentException.php
/usr/share/php/Laminas/Memory/Exception/RuntimeException.php
/usr/share/php/Laminas/Memory/MemoryManager.php
/usr/share/php/Laminas/Memory/Value.php
/usr/share/php/Laminas/Memory/autoload.php
/usr/share/php/Zend/Memory
/usr/share/php/Zend/Memory/autoload.php

References

Summary

In this tutorial we learn how to install php-laminas-memory on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).