The rabbitmqadmin is a command line tool for managing a RabbitMQ message broker. It is a lightweight utility that interacts with the RabbitMQ HTTP API, allowing users to manage exchanges, queues, bindings, users, virtual hosts, and other resources. This tutorial demonstrates how to install rabbitmqadmin on Ubuntu 24.04.
Prepare environment
Make sure you have installed RabbitMQ.
Install rabbitmqadmin
Get the latest rabbitmqadmin version from its GitHub repository and store it in a variable:
RABBITMQADMIN_VERSION=$(curl -s "https://api.github.com/repos/rabbitmq/rabbitmqadmin-ng/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')
Download executable to /usr/local/bin
directory:
sudo wget -qO /usr/local/bin/rabbitmqadmin https://github.com/rabbitmq/rabbitmqadmin-ng/releases/latest/download/rabbitmqadmin-$RABBITMQADMIN_VERSION-x86_64-unknown-linux-gnu
Set execute permission:
sudo chmod a+x /usr/local/bin/rabbitmqadmin
Testing rabbitmqadmin
To verify if the rabbitmqadmin command can connect to the RabbitMQ HTTP API, display essential information using:
rabbitmqadmin show overview
The part of the output:
┌──────────────────────┬────────────────────┐
│ Overview │
├──────────────────────┼────────────────────┤
│ key │ value │
├──────────────────────┼────────────────────┤
│ Product name │ RabbitMQ │
├──────────────────────┼────────────────────┤
│ Product version │ 3.13.7 │
├──────────────────────┼────────────────────┤
│ RabbitMQ version │ 3.13.7 │
├──────────────────────┼────────────────────┤
│ Erlang version │ 26.2.5.9 │
├──────────────────────┼────────────────────┤
...
Uninstall rabbitmqadmin
To uninstall rabbitmqadmin, delete the associated file:
sudo rm -rf /usr/local/bin/rabbitmqadmin
Leave a Comment
Cancel reply