TIP
Original: View on authzed.com
中文版: 查看中文版
Installing SpiceDB on Ubuntu or Debian
This document outlines how to install SpiceDB for systems running Debian-based Linux distributions.
SpiceDB publishes .deb packages, snap packages, and tarballs for AMD64 and ARM64 architectures. For .rpm package installations, refer to the RHEL/CentOS guide.
Installing SpiceDB using APT
First, download the repository's public signing key:
curl -sS https://pkg.authzed.com/apt/gpg.key | sudo gpg --dearmor --yes -o /etc/apt/keyrings/authzed.gpgThen configure the repository source:
echo "deb [signed-by=/etc/apt/keyrings/authzed.gpg] https://pkg.authzed.com/apt/ * *" | sudo tee /etc/apt/sources.list.d/authzed.list
sudo chmod 644 /etc/apt/sources.list.d/authzed.listAlternatively, use the newer deb822 format by adding to /etc/apt/sources.list.d/authzed.sources:
Types: deb
URIs: https://pkg.authzed.com/apt/
Suites: *
Components: *
Signed-By: /etc/apt/keyrings/authzed.gpgFinally, install the package:
sudo apt update
sudo apt install -y spicedbInstalling SpiceDB using Snap
SpiceDB is available through the Snap Store:
sudo snap install spicedbManually Installing SpiceDB Binary for Linux
Download the latest release automatically:
curl https://api.github.com/repos/authzed/spicedb/releases | \
jq --arg platform $(uname | tr '[:upper:]' '[:lower:]') \
--arg arch $(uname -m) \
'.[0].assets.[] | select (.name | contains($platform+"_"+$arch)) | .browser_download_url' -r | \
xargs curl -LOExtract the archive and decide where to place its contents on your system.
INFO
It is recommended to follow the XDG Base Directory Specification if you're not trying to install SpiceDB system-wide.