safeslice

Installation

Install Safeslice on macOS, Linux or Windows — a single static binary with no runtime and no libc dependency.

One static file. No runtime, no server, no control plane. CGO_ENABLED=0 including the SQLite key store, so there is no libc dependency either.

macOS and Linux

curl -sSfL "https://github.com/Autometiq/safeslice/releases/latest/download/safeslice_$(uname -s | tr A-Z a-z)_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz
sudo mv safeslice /usr/local/bin/

Windows

Invoke-WebRequest https://github.com/Autometiq/safeslice/releases/latest/download/safeslice_windows_amd64.zip -OutFile safeslice.zip
Expand-Archive safeslice.zip -DestinationPath $env:LOCALAPPDATA\Programs\safeslice -Force
$env:PATH += ";$env:LOCALAPPDATA\Programs\safeslice"

Go toolchain

go install github.com/Autometiq/safeslice/cmd/safeslice@latest

Docker

docker run --rm ghcr.io/autometiq/safeslice:latest --help

Linux packages

sudo dpkg -i safeslice_amd64.deb   # Debian, Ubuntu
sudo rpm  -i safeslice_amd64.rpm   # RHEL, Fedora, SUSE
sudo apk add --allow-untrusted safeslice_amd64.apk   # Alpine

Verify the download

Every release ships a checksums.txt. On a machine that touches production, use it:

curl -sSfLO https://github.com/Autometiq/safeslice/releases/latest/download/checksums.txt
sha256sum -c checksums.txt --ignore-missing

Builds are produced by goreleaser in GitHub Actions from a tagged commit, for Linux, macOS and Windows on amd64 and arm64.

Check it works

safeslice --version