How To Install php-pecl-amqp on CentOS 7
Introduction
In this tutorial we learn how to install php-pecl-amqp
on CentOS 7.
What is php-pecl-amqp
This extension can communicate with any AMQP spec 0-9-1 compatible server, such as RabbitMQ, OpenAMQP and Qpid, giving you the ability to create and delete exchanges and queues, as well as publish to any exchange and consume from any queue.
We can use yum
or dnf
to install php-pecl-amqp
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-amqp.
Install php-pecl-amqp on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install php-pecl-amqp
using yum
by running the following command:
Install php-pecl-amqp 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-pecl-amqp
using dnf
by running the following command:
How To Uninstall php-pecl-amqp on CentOS 7
To uninstall only the php-pecl-amqp
package we can use the following command:
References
Summary
In this tutorial we learn how to install php-pecl-amqp
on CentOS 7 using yum
and dnf
.