# Install

> Install the gateway and extension from a package, and what to check afterwards.

---

LLMS index: [llms.txt](/llms.txt)

---

`pgredis` is currently at release candidate `v0.1.0-rc1` (product version `0.1.0`, extension schema `0.54`, ABI `3`, commit `11411411d72ab45456904cc602cefbb13b68ff25`, 2026-11-08). No public download URL or apt/rpm repository is published yet. Install either from a local Linux development archive built for PostgreSQL 18.6 or by [building from source](/docs/redis/operations/build/).

## Candidate packages {#packages}

The `v0.1.0-rc1` development archives target Debian 13 (trixie) and PostgreSQL 18.6 from PGDG:

{.wide}
| Archive | Platform | Size (bytes) | SHA-256 |
| --- | --- | --- | --- |
| `pgredis-0.1.0-pg18.6-debian13-amd64.tar.gz` | Linux `x86_64`, glibc 2.41 | `9,321,730` | `d72fdcb4f40d429e5b650d0671105c923db7ceb4425b50f68d45eea0d61e2ba8` |
| `pgredis-0.1.0-pg18.6-debian13-arm64.tar.gz` | Linux `aarch64`, glibc 2.41 | `8,574,419` | `4dcc546ef4c0562eb0b69500c0bbb43f664c3b955259ccde92900ef52e269cd7` |
{.wide .expand}

Each archive contains these members at its top level:

- `bin/pgredis` — the Redis wire gateway executable
- `lib/pg_redis.so` — the PostgreSQL 18 C extension library (ABI `3`)
- `share/extension/pg_redis.control` and `share/extension/pg_redis--*.sql` — the base script (`0.1`) and upgrade scripts through `0.54`
- `licenses/` — project, Redis and dependency licence files
- `install.py` and `manifest.json` — the installer and the file list with SHA-256, size and mode of every member

## Install files {#install}

{.steps}
1. ### Verify the archive checksum

   Check the archive hash before unpacking:

   ```bash
   pgredis_archive=pgredis-0.1.0-pg18.6-debian13-amd64.tar.gz
   sha256sum "$pgredis_archive"
   mkdir pgredis-package
   tar -xzf "$pgredis_archive" -C pgredis-package
   ```

2. ### Run the installer

   `install.py` checks that the host is Debian 13 on `x86_64` or `aarch64`, that `pg_config --version` reports PostgreSQL 18.6, and that every member matches `manifest.json`. Then it installs the binary and extension files:

   ```bash
   sudo python3 -E pgredis-package/install.py \
     "$PWD/$pgredis_archive" \
     --pg-config /usr/lib/postgresql/18/bin/pg_config \
     --gateway-path /usr/local/bin/pgredis
   ```

   The installer copies `pgredis` into `/usr/local/bin/pgredis`, `pg_redis.so` into `pg_config --pkglibdir`, and the control and SQL files into `pg_config --sharedir`/extension.

3. ### Create the extension in PostgreSQL

   Connect to the target PostgreSQL 18 database as a superuser and create the extension:

   ```sql
   CREATE EXTENSION pg_redis;
   SELECT extversion FROM pg_extension WHERE extname = 'pg_redis';
   SELECT redis._abi_version();
   ```

   Confirm that `extversion` returns `0.54` and `redis._abi_version()` returns `3`.

## Start and verify {#verify}

Start the gateway against the target database. Mimus assigns port `6379` to Redis (`pgredis` defaults to `-listen 127.0.0.1:56379` and `-pg postgres://127.0.0.1:55432/pgredis` when flags are omitted):

```bash
/usr/local/bin/pgredis \
  -listen 127.0.0.1:6379 \
  -default-user pgredis_app \
  -pg "postgres://127.0.0.1:5432/postgres?sslmode=disable"
```

Run a post-installation check across both the Redis port and SQL:

```bash
redis-cli -h 127.0.0.1 -p 6379 --user pgredis_app --askpass PING
redis-cli -h 127.0.0.1 -p 6379 --user pgredis_app --askpass SET install:check ready
redis-cli -h 127.0.0.1 -p 6379 --user pgredis_app --askpass GET install:check
psql -h 127.0.0.1 -p 5432 -U postgres -d postgres \
  -c "SELECT convert_from(redis.command(ARRAY['GET', 'install:check']), 'UTF8');"
```

`redis-cli` returns `ready` and `psql` returns the RESP2 bulk string `$5\r\nready\r\n`. To configure least-privilege database roles or Redis ACL rules before exposing the listener to applications, see [Authentication and permissions](/docs/redis/operations/security/).

---

Backlinks:

- [Operations](/docs/redis/operations/)
