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:
Then install:
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:
3. Install¶
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¶
Next Steps¶
- Configuration — edit
/etc/trident/config.toml - Service Management — manage the Trident service