How To Install php-pear-Console-Getargs on Fedora 36

In this tutorial we learn how to install php-pear-Console-Getargs in Fedora 36. php-pear-Console-Getargs is Command-line arguments and parameters parser

Introduction

In this tutorial we learn how to install php-pear-Console-Getargs on Fedora 36.

What is php-pear-Console-Getargs

The Console_Getargs package implements a Command Line arguments and parameters parser for your CLI applications. It performs some basic arguments validation and automatically creates a formatted help text, based on the given configuration.

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

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

sudo dnf -y install php-pear-Console-Getargs

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

sudo yum -y install php-pear-Console-Getargs

How To Uninstall php-pear-Console-Getargs on Fedora 36

To uninstall only the php-pear-Console-Getargs package we can use the following command:

sudo dnf remove php-pear-Console-Getargs

php-pear-Console-Getargs Package Contents on Fedora 36

/usr/share/doc/pear/Console_Getargs
/usr/share/doc/pear/Console_Getargs/README
/usr/share/doc/pear/Console_Getargs/examples
/usr/share/doc/pear/Console_Getargs/examples/example.php
/usr/share/doc/pear/Console_Getargs/examples/example2.php
/usr/share/pear/Console/Getargs.php
/usr/share/tests/pear/Console_Getargs
/usr/share/tests/pear/Console_Getargs/tests
/usr/share/tests/pear/Console_Getargs/tests/Getargs_BasicTest.php
/usr/share/tests/pear/Console_Getargs/tests/Getargs_getValuesTest.php
/var/lib/pear/pkgxml/php-pear-Console-Getargs.xml

References

Summary

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