Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save patrickmslatteryvt/d531c5ae4598fd4c9d508833bde6c7c0 to your computer and use it in GitHub Desktop.
Save patrickmslatteryvt/d531c5ae4598fd4c9d508833bde6c7c0 to your computer and use it in GitHub Desktop.
Install/update SOPS to latest on Fedora
# Install/update SOPS to latest on Fedora - https://github.com/getsops/sops
# This script requires jq installed to parse the API return from GitHub
echo "[+] Install/upgrade SOPS"
which jq | grep -o jq > /dev/null && : || dnf install -y jq
SOPS_VERSION=$(curl -s https://api.github.com/repos/getsops/sops/releases/latest | jq .tag_name | tr -d '"')
dnf install -y https://github.com/getsops/sops/releases/download/${SOPS_VERSION}/sops-${SOPS_VERSION:1}-1.x86_64.rpm
sops --version
# sops 3.7.3 (latest)
@marcomalva
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment