How To Install php-symfony-console on CentOS 7

In this tutorial we learn how to install php-symfony-console on CentOS 7. php-symfony-console is Symfony Console Component

Introduction

In this tutorial we learn how to install php-symfony-console on CentOS 7.

What is php-symfony-console

The Console component eases the creation of beautiful and testable command line interfaces. The Console component allows you to create command-line commands. Your console commands can be used for any recurring task, such as cronjobs, imports, or other batch jobs.

We can use yum or dnf to install php-symfony-console on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-symfony-console.

Install php-symfony-console on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install php-symfony-console using yum by running the following command:

sudo yum -y install php-symfony-console

Install php-symfony-console 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.

sudo dnf makecache

After updating yum database, We can install php-symfony-console using dnf by running the following command:

sudo dnf -y install php-symfony-console

How To Uninstall php-symfony-console on CentOS 7

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

sudo dnf remove php-symfony-console

References

Summary

In this tutorial we learn how to install php-symfony-console on CentOS 7 using yum and dnf.