How To Install php-doctrine-collections on Fedora 36

In this tutorial we learn how to install php-doctrine-collections in Fedora 36. php-doctrine-collections is Collections abstraction library

Introduction

In this tutorial we learn how to install php-doctrine-collections on Fedora 36.

What is php-doctrine-collections

Collections abstraction library. Autoloader

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

Install php-doctrine-collections 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-doctrine-collections using dnf by running the following command:

sudo dnf -y install php-doctrine-collections

Install php-doctrine-collections 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-doctrine-collections using yum by running the following command:

sudo yum -y install php-doctrine-collections

How To Uninstall php-doctrine-collections on Fedora 36

To uninstall only the php-doctrine-collections package we can use the following command:

sudo dnf remove php-doctrine-collections

php-doctrine-collections Package Contents on Fedora 36

/usr/share/doc/php-doctrine-collections
/usr/share/doc/php-doctrine-collections/CONTRIBUTING.md
/usr/share/doc/php-doctrine-collections/README.md
/usr/share/doc/php-doctrine-collections/composer.json
/usr/share/licenses/php-doctrine-collections
/usr/share/licenses/php-doctrine-collections/LICENSE
/usr/share/php/Doctrine
/usr/share/php/Doctrine/Common
/usr/share/php/Doctrine/Common/Collections
/usr/share/php/Doctrine/Common/Collections/AbstractLazyCollection.php
/usr/share/php/Doctrine/Common/Collections/ArrayCollection.php
/usr/share/php/Doctrine/Common/Collections/Collection.php
/usr/share/php/Doctrine/Common/Collections/Criteria.php
/usr/share/php/Doctrine/Common/Collections/Expr
/usr/share/php/Doctrine/Common/Collections/Expr/ClosureExpressionVisitor.php
/usr/share/php/Doctrine/Common/Collections/Expr/Comparison.php
/usr/share/php/Doctrine/Common/Collections/Expr/CompositeExpression.php
/usr/share/php/Doctrine/Common/Collections/Expr/Expression.php
/usr/share/php/Doctrine/Common/Collections/Expr/ExpressionVisitor.php
/usr/share/php/Doctrine/Common/Collections/Expr/Value.php
/usr/share/php/Doctrine/Common/Collections/ExpressionBuilder.php
/usr/share/php/Doctrine/Common/Collections/Selectable.php
/usr/share/php/Doctrine/Common/Collections/autoload.php

References

Summary

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