1 min readMar 29, 2026by jakub

Alpine Linux

Install Trident on Alpine Linux using APK.

Tested Distribution

This installation method is tested end-to-end on Alpine 3.20 using automated integration tests that verify binaries, configuration, caching behavior, and graceful shutdown.

Automatic Setup

The repository setup script handles everything:

Bash
curl -sSL https://pkg.trident-cache.com/setup | sudo sh

Then install:

Bash
sudo apk add trident

Manual Setup

1. Download the RSA public key

Bash
sudo mkdir -p /etc/apk/keys
sudo curl -fsSL https://pkg.trident-cache.com/gpg.rsa.pub \
  -o /etc/apk/keys/[email protected]

2. Add the repository

Append the repository URL to /etc/apk/repositories:

Bash
echo "https://pkg.trident-cache.com/apk/$(uname -m)" \
  | sudo tee -a /etc/apk/repositories

3. Install

Bash
sudo apk update
sudo apk add trident

What Gets Installed

The package installs and configures the following:

ComponentPath
Main binary/usr/bin/trident
CLI tool/usr/bin/trident-cli
Default config/etc/trident/config.toml
Cache directory/var/lib/trident/ (owned by trident:trident)
Log directory/var/log/trident/ (owned by trident:trident)

A trident system user and group are created automatically by the package's preinstall script.

Note

Alpine Linux uses OpenRC instead of systemd. See Service Management for OpenRC-specific instructions.

Verify Installation

Bash
trident --version
trident-cli --version

Next Steps

Was this page helpful?
Alpine Linux — Installation — Trident HTTP Cache Proxy | qoliber Docs