Skip to content

Alpine Linux

Install the core APK only after reviewing its exact release and trust policy. Alpine uses OpenRC, not systemd.

Source instructions and release qualification

These instructions reflect the checked-in 1.8.0 package/service sources. Existing CI recipes and historical rehearsals are not proof that a particular published package, repository signature or installed host has passed current qualification. Select and verify the exact released version, architecture, SKU and installed binary; 1.8.0 publication and full package lifecycle evidence remain separate release gates.

Signed repository and selected release

The reviewed 1.8.0 setup source imports the repository RSA public key and runs normal authenticated apk update; it does not use --allow-untrusted for consumer setup. Approve the key source/fingerprint before trusting it. The selected index and packages must pass native signature checks. These source requirements do not prove that the public setup endpoint serves this exact revision or that a particular 1.8.0 package has been published.

Repository setup

Download and inspect the setup script before executing it with administrator privileges. Verify the approved revision and signing-key fingerprint through your release trust process; downloading over HTTPS is not independent signature qualification.

curl -fsSL https://pkg.trident-cache.com/setup -o trident-repo-setup.sh
# Review this file and verify the approved source before the next command.
sudo sh ./trident-repo-setup.sh

The script changes repository configuration and refreshes package metadata. It does not validate a candidate configuration or qualify the subsequent installation.

Manual repository selection

The repository line must be the root /apk: APK adds its architecture itself. Do not append $(uname -m) to this line.

printf '%s\n' 'https://pkg.trident-cache.com/apk' | sudo tee -a /etc/apk/repositories

Inspect existing lines first to avoid duplicates or the old /apk/<arch>/<arch> path error. The source uses /gpg.rsa.pub for the public key; approve its fingerprint/source before trusting it. A verified signed repository should work with normal signature enforcement:

sudo apk update
sudo apk add trident

Unsigned or wrong-key artifacts must be refused by those normal commands. Investigate the selected release, repository/index and key identity rather than adding --allow-untrusted to make a candidate installation succeed. Downloading a key or refreshing an index alone does not establish package or runtime qualification.

Installed files and service setup

Core payloads include /usr/bin/trident, /usr/bin/trident-cli, /usr/bin/trident-snap, /etc/trident/config.toml, /etc/trident/config.json, and the package's systemd files. A trident system user/group and state/log directories are declared. The APK installs no OpenRC init script: rc-service trident ... is not available merely because the package was installed.

Use the reviewed source OpenRC reference described in Service Management. Install it as /etc/init.d/trident only after review. Its cfgfile defaults to /etc/trident/config.toml; select JSON explicitly through /etc/conf.d/trident if needed. Preserve operator configuration and arrange service-user access to secrets/licence. Do not assume /etc/default/trident selects an OpenRC service's configuration.

With that script installed and the candidate/configuration checked:

sudo rc-service trident checkconfig
sudo rc-service trident start
sudo rc-update add trident default

Verify and upgrade

/usr/bin/trident --version
/usr/bin/trident-cli --version
sudo rc-service trident status

Target the configured admin address: packaged Core uses loopback 6085, while the in-code fallback is 9000. Use /admin/ready for readiness and verify full application/cache/private bodies separately.

apk upgrade does not restart the process: the package has no APK upgrade hooks or OpenRC service. Keep the old process serving while the new installed binary validates the active configuration; the reviewed OpenRC script checks before restart stops it. On refusal, correct the configuration before restarting. The systemd checked-package-upgrade helper calls systemctl even in --check-only mode and is not an OpenRC upgrade procedure.

Preserve the old package and compatible configuration for rollback. Every 1.8 start and rollback starts cold; validate readiness and exact bodies before returning traffic. Review the source upgrade guide, keeping the ten-minute development-test budget separate from operator lifecycle timing.

Next steps