RHEL / Fedora / CentOS
Install Trident on Fedora, RHEL, CentOS Stream, Rocky Linux, AlmaLinux, openSUSE, Oracle Linux, and Amazon Linux using DNF, YUM, or Zypper.
This installation method is tested end-to-end on Fedora 41, Rocky Linux 9, CentOS Stream 9, AlmaLinux 9, and openSUSE Leap 15.6 using automated integration tests that verify binaries, configuration, systemd service, caching behavior, and graceful shutdown.
Automatic Setup
The repository setup script handles everything:
curl -sSL https://pkg.trident-cache.com/setup | sudo shThen install:
DNF (Fedora / RHEL 8+)
sudo dnf install tridentMicrodnf (Rocky / Alma minimal)
sudo microdnf install tridentYUM (CentOS 7 / older)
sudo yum install tridentZypper (openSUSE)
sudo zypper install tridentManual Setup
DNF / YUM Distributions
Fedora, RHEL, CentOS Stream, Rocky Linux, AlmaLinux, Oracle Linux, and Amazon Linux.
1. Import the GPG signing key
sudo rpm --import https://pkg.trident-cache.com/gpg.key2. Add the repository
Create /etc/yum.repos.d/trident.repo:
[trident]
name=Trident Cache Proxy
baseurl=https://pkg.trident-cache.com/rpm/$basearch
enabled=1
gpgcheck=1
gpgkey=https://pkg.trident-cache.com/gpg.key3. Install
DNF
sudo dnf install tridentMicrodnf (minimal images)
sudo microdnf install tridentYUM
sudo yum makecache
sudo yum install tridentopenSUSE / SLES
1. Import the GPG signing key
sudo rpm --import https://pkg.trident-cache.com/gpg.key2. Add the repository
sudo zypper addrepo --gpgcheck --refresh \
https://pkg.trident-cache.com/rpm/x86_64 trident3. Install
sudo zypper install 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 |
| Systemd service | /usr/lib/systemd/system/trident.service |
| 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.
Verify Installation
trident --version
trident-cli --versionCheck that the systemd service file is in place:
systemctl cat tridentNext Steps
- Configuration -- edit
/etc/trident/config.toml - Service Management -- start and enable the systemd service