How To Install php-psr-container2 on Fedora 36
Introduction
In this tutorial we learn how to install php-psr-container2
on Fedora 36.
What is php-psr-container2
This package holds all interfaces/classes/traits related to PSR-11. Note that this is not a container implementation of its own. Autoloader
We can use yum
or dnf
to install php-psr-container2
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-psr-container2.
Install php-psr-container2 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-psr-container2
using dnf
by running the following command:
sudo dnf -y install php-psr-container2
Install php-psr-container2 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-psr-container2
using yum
by running the following command:
sudo yum -y install php-psr-container2
How To Uninstall php-psr-container2 on Fedora 36
To uninstall only the php-psr-container2
package we can use the following command:
sudo dnf remove php-psr-container2
php-psr-container2 Package Contents on Fedora 36
/usr/share/doc/php-psr-container2
/usr/share/doc/php-psr-container2/README.md
/usr/share/doc/php-psr-container2/composer.json
/usr/share/licenses/php-psr-container2
/usr/share/licenses/php-psr-container2/LICENSE
/usr/share/php/Psr
/usr/share/php/Psr/Container2
/usr/share/php/Psr/Container2/ContainerExceptionInterface.php
/usr/share/php/Psr/Container2/ContainerInterface.php
/usr/share/php/Psr/Container2/NotFoundExceptionInterface.php
/usr/share/php/Psr/Container2/autoload.php
References
Summary
In this tutorial we learn how to install php-psr-container2
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).