How To Install php-symfony-http-kernel on CentOS 7

In this tutorial we learn how to install php-symfony-http-kernel on CentOS 7. php-symfony-http-kernel is Symfony HttpKernel Component

Introduction

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

What is php-symfony-http-kernel

The HttpKernel Component provides a structured process for converting a Request into a Response by making use of the event dispatcher. It’s flexible enough to create a full-stack framework (Symfony), a micro-framework (Silex) or an advanced CMS system (Drupal). Configuration reference http Optional * APC (php-pecl-apcu) * Memcache (php-pecl-memcache) * Memcached (php-pecl-memcached) * Mongo (php-pecl-mongo) * Redis (php-pecl-redis) * Zend OPcache (php-pecl-zendopcache)

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

Install php-symfony-http-kernel 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-http-kernel using yum by running the following command:

sudo yum -y install php-symfony-http-kernel

Install php-symfony-http-kernel 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-http-kernel using dnf by running the following command:

sudo dnf -y install php-symfony-http-kernel

How To Uninstall php-symfony-http-kernel on CentOS 7

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

sudo dnf remove php-symfony-http-kernel

References

Summary

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