Skip to content

Instantly share code, notes, and snippets.

@kmpm
Last active March 10, 2023 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmpm/a83912c95009561ff6c6dcc9a2373751 to your computer and use it in GitHub Desktop.
Save kmpm/a83912c95009561ff6c6dcc9a2373751 to your computer and use it in GitHub Desktop.
install various nats.io tools on linux
#!/bin/bash
# curl -fsSL https://gist.githubusercontent.com/kmpm/a83912c95009561ff6c6dcc9a2373751/raw/nats-setup-linux.sh | bash
export DEBIAN_FRONTEND=noninteractive
apt-get install -y unzip curl
echo "Downloading nsc install script"
curl -fsSL https://raw.githubusercontent.com/nats-io/nsc/master/install.sh -o /tmp/nsc-install.sh
echo "Running nsc install script"
sh /tmp/nsc-install.sh -d /usr/local/bin
echo "Downloading nats client deb"
curl -fsSL https://github.com/nats-io/natscli/releases/download/v0.0.35/nats-0.0.35-amd64.deb -o /tmp/nats-0.0.35-amd64.deb
echo "Installing nats client deb"
dpkg -i /tmp/nats-0.0.35-amd64.deb
apt-get install -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment