Skip to content

Commit

Permalink
Update debian install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Jan 9, 2025
1 parent 4920c35 commit 0da790e
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions pages/spicedb/getting-started/install/debian.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Callout } from 'nextra/components'

# Installing SpiceDB on Ubuntu or Debian

This document outlines how to install SpiceDB for systems running [Debian-like Linux distributions][debianlike].
Expand All @@ -13,24 +15,36 @@ Visit the doc on [Installing SpiceDB on RHEL/Centos][rhel]

## Installing SpiceDB using apt-get

Before installing SpiceDB, you must first install the following dependencies:
First, download the public signing key for the repository:

```sh
sudo apt update && sudo apt install -y curl ca-certificates gpg
# In releases older than Debian 12 and Ubuntu 22.04, the folder `/etc/apt/keyrings` does not exist by default, and it should be created before the curl command.
# sudo mkdir -p -m 755 /etc/apt/keyrings

curl -sS https://pkg.authzed.com/apt/gpg.key | sudo gpg --dearmor --yes -o /etc/apt/keyrings/spicedb.gpg
```

These dependencies are used to verify and trust the official SpiceDB Debian repository.
We'll do that by running the following commands:
Then add the list file for the repository:

```sh
curl https://pkg.authzed.com/apt/gpg.key | sudo apt-key add -
sudo sh -c 'echo "deb https://pkg.authzed.com/apt/ * *" > /etc/apt/sources.list.d/authzed.list'
sudo apt update
echo "deb [signed-by=/etc/apt/keyrings/spicedb.gpg] https://pkg.authzed.com/apt/ * *" | sudo tee /etc/apt/sources.list.d/authzed.list
sudo chmod 644 /etc/apt/sources.list.d/authzed.list # helps tools such as command-not-found to work correctly
```

Alternatively, if you want to use the new `deb822`-style `authzed.sources` format, put the following in `/etc/apt/sources.list.d/authzed.sources`:

```
Types: deb
URIs: https://pkg.authzed.com/apt/
Suites: *
Components: *
Signed-By: /etc/apt/keyrings/spicedb.gpg
```

Once the apt has updated with our newly added source for SpiceDB packages, it can be installed just like any other package:
Once the you've defined the sources and updated your apt cache, it can be installed just like any other package:

```sh
sudo apt update
sudo apt install -y spicedb
```

Expand Down

0 comments on commit 0da790e

Please sign in to comment.