How To Install librabbitmq-dev on Ubuntu 22.04
Introduction
In this tutorial we learn how to install librabbitmq-dev
on Ubuntu 22.04.
What is librabbitmq-dev
librabbitmq-dev is:
RabbitMQ provides robust messaging for applications. It is easy to use, fit for purpose at cloud scale and supported on all major operating systems and developer platforms. librabbitmq is a C-language AMQP client library for use with AMQP servers such as RabbitMQ speaking protocol versions 0-9-1.
This package provides the files needed for development.
There are three methods to install librabbitmq-dev
on Ubuntu 22.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 librabbitmq-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install librabbitmq-dev
using apt-get
by running the following command:
sudo apt-get -y install librabbitmq-dev
Install librabbitmq-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install librabbitmq-dev
using apt
by running the following command:
sudo apt -y install librabbitmq-dev
Install librabbitmq-dev 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 librabbitmq-dev
using aptitude
by running the following command:
sudo aptitude -y install librabbitmq-dev
How To Uninstall librabbitmq-dev on Ubuntu 22.04
To uninstall only the librabbitmq-dev
package we can use the following command:
sudo apt-get remove librabbitmq-dev
Uninstall librabbitmq-dev And Its Dependencies
To uninstall librabbitmq-dev
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove librabbitmq-dev
Remove librabbitmq-dev Configurations and Data
To remove librabbitmq-dev
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge librabbitmq-dev
Remove librabbitmq-dev configuration, data, and all of its dependencies
We can use the following command to remove librabbitmq-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge librabbitmq-dev
References
Summary
In this tutorial we learn how to install librabbitmq-dev
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.