1

I'm trying to install RabbitMQ on Ubuntu 18.04.

I'm really new to Linux so don't really understand the installation tutorial on RabbitMQ website: https://www.rabbitmq.com/install-debian.html#apt

I'm trying to run deb http://dl.bintray.com/rabbitmq-erlang/debian bionic erlang-21.x And I get "can't find command deb", is this something I need to install? If so how?

I'm just trying to get the RabbitMQ service running so I can test a couple of things, either the tutorial is difficult too understand or I'm just stupid. Any help and explanation would be appreciated!

ryansan
  • 123

1 Answers1

2

It doesn't tell you to run deb http://... command; that is a line that should be written to a file. You should execute this:

sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list <<EOF
## Installs the latest Erlang 22.x release.
## Change component to "erlang-21.x" to install the latest 21.x version.
## "bionic" as distribution name should work for any later Ubuntu or Debian release.
## See the release to distribution mapping table in RabbitMQ doc guides to learn more.
deb https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang
deb https://dl.bintray.com/rabbitmq/debian bionic main
EOF

as a 1 big (four line + comments) command.

Or alternatively, just put this content:

deb https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang
deb https://dl.bintray.com/rabbitmq/debian bionic main

in the file /etc/apt/sources.list.d/bintray.rabbitmq.list (you'll need to do it with root privileges), that's the same thing. This tells apt where to download your packages from.

jpalecek
  • 261