How To Install php-pecl-amqp on Fedora 36

In this tutorial we learn how to install php-pecl-amqp in Fedora 36. php-pecl-amqp is Communicate with any AMQP compliant server

Introduction

In this tutorial we learn how to install php-pecl-amqp on Fedora 36.

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 Fedora 36. 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 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-pecl-amqp using dnf by running the following command:

sudo dnf -y install php-pecl-amqp

Install php-pecl-amqp 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-pecl-amqp using yum by running the following command:

sudo yum -y install php-pecl-amqp

How To Uninstall php-pecl-amqp on Fedora 36

To uninstall only the php-pecl-amqp package we can use the following command:

sudo dnf remove php-pecl-amqp

php-pecl-amqp Package Contents on Fedora 36

/etc/php-zts.d/40-amqp.ini
/etc/php.d/40-amqp.ini
/usr/lib/.build-id
/usr/lib/.build-id/46
/usr/lib/.build-id/46/bf0ba2677ceedd39c88ca86ad662a33d29acd4
/usr/lib/.build-id/63
/usr/lib/.build-id/63/2fbdcc847fdab9bc224608bee98a85957399ba
/usr/lib64/php-zts/modules/amqp.so
/usr/lib64/php/modules/amqp.so
/usr/share/doc/pecl/amqp
/usr/share/doc/pecl/amqp/CREDITS
/usr/share/doc/pecl/amqp/benchmark.php
/usr/share/doc/pecl/amqp/stubs
/usr/share/doc/pecl/amqp/stubs/AMQP.php
/usr/share/doc/pecl/amqp/stubs/AMQPBasicProperties.php
/usr/share/doc/pecl/amqp/stubs/AMQPChannel.php
/usr/share/doc/pecl/amqp/stubs/AMQPChannelException.php
/usr/share/doc/pecl/amqp/stubs/AMQPConnection.php
/usr/share/doc/pecl/amqp/stubs/AMQPConnectionException.php
/usr/share/doc/pecl/amqp/stubs/AMQPDecimal.php
/usr/share/doc/pecl/amqp/stubs/AMQPEnvelope.php
/usr/share/doc/pecl/amqp/stubs/AMQPEnvelopeException.php
/usr/share/doc/pecl/amqp/stubs/AMQPException.php
/usr/share/doc/pecl/amqp/stubs/AMQPExchange.php
/usr/share/doc/pecl/amqp/stubs/AMQPExchangeException.php
/usr/share/doc/pecl/amqp/stubs/AMQPQueue.php
/usr/share/doc/pecl/amqp/stubs/AMQPQueueException.php
/usr/share/doc/pecl/amqp/stubs/AMQPTimestamp.php
/usr/share/doc/pecl/amqp/stubs/AMQPValueException.php
/usr/share/licenses/php-pecl-amqp
/usr/share/licenses/php-pecl-amqp/LICENSE
/var/lib/php/peclxml/php-pecl-amqp.xml

References

Summary

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