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 shThen install:
Bash
sudo apk add tridentManual 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/repositories3. Install
Bash
sudo apk update
sudo apk add tridentWhat 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
Bash
trident --version
trident-cli --versionNext Steps
- Configuration -- edit
/etc/trident/config.toml - Service Management -- manage the Trident service
Was this page helpful?