Skip to content

Instantly share code, notes, and snippets.

@kmpm
Last active March 10, 2023 15:19
Show Gist options
  • 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