How To Install php-Metadata on Fedora 36

In this tutorial we learn how to install php-Metadata in Fedora 36. php-Metadata is Class/method/property metadata management in PHP

Introduction

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

What is php-Metadata

This library provides some commonly needed base classes for managing metadata for classes, methods and properties. The metadata can come from many different sources (annotations, YAML/XML/PHP configuration files). The metadata classes are used to abstract away that source and provide a common interface for all of them. Autoloader

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

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

sudo dnf -y install php-Metadata

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

sudo yum -y install php-Metadata

How To Uninstall php-Metadata on Fedora 36

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

sudo dnf remove php-Metadata

php-Metadata Package Contents on Fedora 36

/usr/share/doc/php-Metadata
/usr/share/doc/php-Metadata/CHANGELOG.md
/usr/share/doc/php-Metadata/README.rst
/usr/share/doc/php-Metadata/composer.json
/usr/share/licenses/php-Metadata
/usr/share/licenses/php-Metadata/LICENSE
/usr/share/php/Metadata
/usr/share/php/Metadata/AdvancedMetadataFactoryInterface.php
/usr/share/php/Metadata/Cache
/usr/share/php/Metadata/Cache/CacheInterface.php
/usr/share/php/Metadata/Cache/DoctrineCacheAdapter.php
/usr/share/php/Metadata/Cache/FileCache.php
/usr/share/php/Metadata/Cache/PsrCacheAdapter.php
/usr/share/php/Metadata/ClassHierarchyMetadata.php
/usr/share/php/Metadata/ClassMetadata.php
/usr/share/php/Metadata/Driver
/usr/share/php/Metadata/Driver/AbstractFileDriver.php
/usr/share/php/Metadata/Driver/AdvancedDriverInterface.php
/usr/share/php/Metadata/Driver/AdvancedFileLocatorInterface.php
/usr/share/php/Metadata/Driver/DriverChain.php
/usr/share/php/Metadata/Driver/DriverInterface.php
/usr/share/php/Metadata/Driver/FileLocator.php
/usr/share/php/Metadata/Driver/FileLocatorInterface.php
/usr/share/php/Metadata/Driver/LazyLoadingDriver.php
/usr/share/php/Metadata/MergeableClassMetadata.php
/usr/share/php/Metadata/MergeableInterface.php
/usr/share/php/Metadata/MetadataFactory.php
/usr/share/php/Metadata/MetadataFactoryInterface.php
/usr/share/php/Metadata/MethodMetadata.php
/usr/share/php/Metadata/NullMetadata.php
/usr/share/php/Metadata/PropertyMetadata.php
/usr/share/php/Metadata/Version.php
/usr/share/php/Metadata/autoload.php

References

Summary

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