How To Install php-sebastian-cli-parser on Fedora 36

In this tutorial we learn how to install php-sebastian-cli-parser in Fedora 36. php-sebastian-cli-parser is Library for parsing CLI options

Introduction

In this tutorial we learn how to install php-sebastian-cli-parser on Fedora 36.

What is php-sebastian-cli-parser

Library for parsing $_SERVER[‘argv’], extracted from phpunit/phpunit. Autoloader

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

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

sudo dnf -y install php-sebastian-cli-parser

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

sudo yum -y install php-sebastian-cli-parser

How To Uninstall php-sebastian-cli-parser on Fedora 36

To uninstall only the php-sebastian-cli-parser package we can use the following command:

sudo dnf remove php-sebastian-cli-parser

php-sebastian-cli-parser Package Contents on Fedora 36

/usr/share/doc/php-sebastian-cli-parser
/usr/share/doc/php-sebastian-cli-parser/ChangeLog.md
/usr/share/doc/php-sebastian-cli-parser/README.md
/usr/share/doc/php-sebastian-cli-parser/composer.json
/usr/share/licenses/php-sebastian-cli-parser
/usr/share/licenses/php-sebastian-cli-parser/LICENSE
/usr/share/php/SebastianBergmann
/usr/share/php/SebastianBergmann/CliParser
/usr/share/php/SebastianBergmann/CliParser/Parser.php
/usr/share/php/SebastianBergmann/CliParser/autoload.php
/usr/share/php/SebastianBergmann/CliParser/exceptions
/usr/share/php/SebastianBergmann/CliParser/exceptions/AmbiguousOptionException.php
/usr/share/php/SebastianBergmann/CliParser/exceptions/Exception.php
/usr/share/php/SebastianBergmann/CliParser/exceptions/OptionDoesNotAllowArgumentException.php
/usr/share/php/SebastianBergmann/CliParser/exceptions/RequiredOptionArgumentMissingException.php
/usr/share/php/SebastianBergmann/CliParser/exceptions/UnknownOptionException.php

References

Summary

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