Skip to content

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:

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

Then install:

sudo apk add trident

Manual Setup

1. Download the RSA public key

sudo mkdir -p /etc/apk/keys
sudo curl -fsSL https://pkg.trident-cache.com/gpg.rsa.pub \
  -o /etc/apk/keys/packages@trident-cache.com.rsa.pub

2. Add the repository

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

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

3. Install

sudo apk update
sudo apk add trident

What Gets Installed

The package installs and configures the following:

Component Path
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

trident --version
trident-cli --version

Next Steps