How To Install php-pear-Console-CommandLine on CentOS 7
Introduction
In this tutorial we learn how to install php-pear-Console-CommandLine
on CentOS 7.
What is php-pear-Console-CommandLine
Console_CommandLine is a full featured package for managing command-line options and arguments highly inspired from python optparse module, it allows the developer to easily build complex command line interfaces. Main features * handles sub commands (i.e. $ my-script.php -q sub-command -f file), * can be completely built from an XML definition file, * generate –help and –version options automatically, * can be completely customized, * built-in support for i18n, * and much more…
We can use yum
or dnf
to install php-pear-Console-CommandLine
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-pear-Console-CommandLine.
Install php-pear-Console-CommandLine on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install php-pear-Console-CommandLine
using yum
by running the following command:
Install php-pear-Console-CommandLine on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install php-pear-Console-CommandLine
using dnf
by running the following command:
How To Uninstall php-pear-Console-CommandLine on CentOS 7
To uninstall only the php-pear-Console-CommandLine
package we can use the following command:
References
Summary
In this tutorial we learn how to install php-pear-Console-CommandLine
on CentOS 7 using yum
and dnf
.