How To Install libanyevent-rabbitmq-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libanyevent-rabbitmq-perl
on Ubuntu 20.04.
What is libanyevent-rabbitmq-perl
libanyevent-rabbitmq-perl is:
AnyEvent::RabbitMQ is an AMQP (Advanced Message Queuing Protocol) client library, that is intended to allow you to interact with AMQP-compliant message brokers/servers such as RabbitMQ in an asynchronous fashion.
You can use AnyEvent::RabbitMQ to -
- Declare and delete exchanges
- Declare, delete, bind and unbind queues
- Set QoS and confirm mode
- Publish, consume, get, ack, recover and reject messages
- Select, commit and rollback transactions
AnyEvent::RabbitMQ is known to work with RabbitMQ versions 2.5.1 and versions 0-8 and 0-9-1 of the AMQP specification.
This client is the non-blocking version, for a blocking version with a similar API, see Net::RabbitFoot.
AnyEvent is a framework to do event-based programming, implemented as a thin abstraction layer on top of other event loops.
There are three methods to install libanyevent-rabbitmq-perl
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libanyevent-rabbitmq-perl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libanyevent-rabbitmq-perl
using apt-get
by running the following command:
sudo apt-get -y install libanyevent-rabbitmq-perl
Install libanyevent-rabbitmq-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libanyevent-rabbitmq-perl
using apt
by running the following command:
sudo apt -y install libanyevent-rabbitmq-perl
Install libanyevent-rabbitmq-perl Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libanyevent-rabbitmq-perl
using aptitude
by running the following command:
sudo aptitude -y install libanyevent-rabbitmq-perl
How To Uninstall libanyevent-rabbitmq-perl on Ubuntu 20.04
To uninstall only the libanyevent-rabbitmq-perl
package we can use the following command:
sudo apt-get remove libanyevent-rabbitmq-perl
Uninstall libanyevent-rabbitmq-perl And Its Dependencies
To uninstall libanyevent-rabbitmq-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libanyevent-rabbitmq-perl
Remove libanyevent-rabbitmq-perl Configurations and Data
To remove libanyevent-rabbitmq-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libanyevent-rabbitmq-perl
Remove libanyevent-rabbitmq-perl configuration, data, and all of its dependencies
We can use the following command to remove libanyevent-rabbitmq-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libanyevent-rabbitmq-perl
References
Summary
In this tutorial we learn how to install libanyevent-rabbitmq-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.