Created
May 31, 2021 18:58
-
-
Save Gsantomaggio/b0c1592fdd0105eda6b3a8372faa7838 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt-get install curl gnupg debian-keyring debian-archive-keyring apt-transport-https -y | |
## Team RabbitMQ's main signing key | |
sudo apt-key adv --keyserver "hkps://keys.openpgp.org" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA" | |
## Launchpad PPA that provides modern Erlang releases | |
sudo apt-key adv --keyserver "keyserver.ubuntu.com" --recv-keys "F77F1EDA57EBB1CC" | |
## PackageCloud RabbitMQ repository | |
curl -1sLf 'https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey' | sudo apt-key add - | |
## Add apt repositories maintained by Team RabbitMQ | |
sudo tee /etc/apt/sources.list.d/rabbitmq.list <<EOF | |
## Provides modern Erlang/OTP releases | |
## | |
## "bionic" as distribution name should work for any reasonably recent Ubuntu or Debian release. | |
## See the release to distribution mapping table in RabbitMQ doc guides to learn more. | |
deb http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu bionic main | |
deb-src http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu bionic main | |
## Provides RabbitMQ | |
## | |
## "bionic" as distribution name should work for any reasonably recent Ubuntu or Debian release. | |
## See the release to distribution mapping table in RabbitMQ doc guides to learn more. | |
deb https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/ bionic main | |
deb-src https://packagecloud.io/rabbitmq/rabbitmq-server/ubuntu/ bionic main | |
EOF | |
## Update package indices | |
sudo apt-get update -y | |
## Install Erlang packages | |
sudo apt-get install -y erlang-base \ | |
erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets \ | |
erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key \ | |
erlang-runtime-tools erlang-snmp erlang-ssl \ | |
erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl | |
## Install rabbitmq-server and its dependencies | |
sudo apt-get install rabbitmq-server -y --fix-missing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment