Skip to content

Instantly share code, notes, and snippets.

@ptavares
Created February 15, 2022 20:25
Show Gist options
  • Save ptavares/a265ff0c19c0d9056a94617dd7bf2b53 to your computer and use it in GitHub Desktop.
Save ptavares/a265ff0c19c0d9056a94617dd7bf2b53 to your computer and use it in GitHub Desktop.
Install / Update Helm in one line using unix tools : curl / jq / tar and copy binary to $USER/.local/bin directory
# One line Helm install / update
curl -L "$(curl -s https://api.github.com/repos/helm/helm/releases/latest | jq -r .body | grep -o -E "https://get.+?-linux-amd64.tar.gz" | cut -d ")" -f 1)" > /tmp/helm.tar.gz && tar xvzf /tmp/helm.tar.gz && mv /tmp/linux-amd64/helm ~/.local/bin/ && rm -rf helm.tar.gz linux-amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment