Binary Download¶
Use an exact reviewed release artifact and checksum for the target platform. A daemon binary alone does not establish installed-package, service, upgrade or signature qualification.
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.
Reviewed install script¶
Download the script before granting it privileges:
curl -fsSL https://get.trident-cache.com/install.sh -o install-trident.sh
# Review and verify the approved source before execution.
RELEASE_TAG='vX.Y.Z' # replace with an actual reviewed, published release tag
sh ./install-trident.sh --prefix "$HOME/.local" --version "$RELEASE_TAG"
The checked-in installer downloads from Trident-Cache/trident-cache GitHub Releases. This documents source behavior, not proof that get.trident-cache.com currently delivers that exact revision. Confirm source and release identity before running it. Do not treat a development version string as publication evidence.
Options¶
| Flag | Source behavior | Default |
|---|---|---|
--prefix DIR |
Installs available binaries under DIR/bin; use a writable prefix |
/usr/local |
--version VER |
Selects the requested published release tag | latest release API result |
--with-service |
Linux-only systemd/configuration setup; needs privileges | off |
--skip-checksum |
Explicitly disables archive integrity checking; not a normal verified install | off |
Normal installation requires checksums.txt and validates SHA-256 before extraction. If cosign is installed and matching signature/certificate assets are available, the source also verifies them; absence does not become a signature PASS. Do not use --skip-checksum to hide a download, missing-checksum or trust failure.
Linux systemd installation¶
After reviewing the script and selecting the actual released tag:
This installs the daemon under /opt/trident/bin and rewrites the systemd ExecStart to that selected prefix. It creates /etc/trident/config.json only when neither JSON nor TOML config exists. With no existing /etc/default/trident, it selects existing TOML when present, otherwise JSON. Existing configuration/default-environment files are preserved. It creates the system user/state/log directories and reloads systemd, but does not start or enable the service.
Configure the actual backend/Host allowlist, credentials/licence and service-user/sandbox access before starting. Inspect /etc/default/trident and the unit: do not edit TOML while a fresh installer selects JSON, or validate /usr/bin/trident while the unit runs /opt/trident/bin/trident. Use the actual selected binary and configuration:
sudo -u trident /opt/trident/bin/trident --config /etc/trident/config.json --check
systemctl cat trident
Supply the same required protected environment as the service; sudo does not automatically load its environment file. Follow Service Management for start, boot policy and readiness. --with-service is not an OpenRC, macOS launchd, FreeBSD rc.d or Windows service installer.
Manual download¶
The current release build matrix declares these Core tarballs:
| Platform | Archive |
|---|---|
| Linux x86_64, musl | trident-linux-x64.tar.gz |
| Linux ARM64, musl | trident-linux-arm64.tar.gz |
| macOS Apple Silicon | trident-macos-arm64.tar.gz |
| FreeBSD amd64 | trident-freebsd-x64.tar.gz |
The current matrix does not declare Windows or Intel macOS artifacts. An installer recognizing an OS/architecture string is not evidence that a matching asset exists. The universal script does not detect FreeBSD: use its package or the reviewed manual FreeBSD archive path. Standalone Commerce artifacts are a distinct SKU and are not interchangeable with Core.
For a Linux x86_64 archive, after choosing the real release and verifying its trust/provenance:
set -eu
RELEASE_TAG='vX.Y.Z' # replace with the actual approved published tag
ASSET=trident-linux-x64.tar.gz
BASE="https://github.com/Trident-Cache/trident-cache/releases/download/$RELEASE_TAG"
curl -fsSL "$BASE/$ASSET" -o "$ASSET"
curl -fsSL "$BASE/checksums.txt" -o checksums.txt
awk -v artifact="$ASSET" '$2 == artifact { print }' checksums.txt | sha256sum -c -
mkdir trident-release
tar -xzf "$ASSET" -C trident-release
sudo install -m 0755 trident-release/trident /usr/local/bin/trident
sudo install -m 0755 trident-release/trident-cli /usr/local/bin/trident-cli
sudo install -m 0755 trident-release/trident-snap /usr/local/bin/trident-snap
The checksum verifies bytes against that manifest; it does not independently authenticate a manifest downloaded from the same source. Verify the release's signed provenance/trust as applicable. macOS needs the matching archive and checksum tooling, not this Linux command pasted unchanged. Manual extraction creates no configuration, service user, service, licence or state-directory policy.
Verify and upgrade¶
Use the actual prefix. Verify daemon/tool digests and the selected config before serving. Version output alone does not prove a caching licence, readiness or body correctness. Packaged configs use loopback admin 6085; CLI/config in-code fallback is 9000.
Before replacing a binary, retain the previous executable/configuration, preflight the new exact binary as the service user with the real environment, and plan traffic drain/restart. A binary installer is not an atomic upgrade/rollback controller. A 1.8 restart and rollback start cold; validate readiness and complete bodies before returning traffic. See the source upgrade guide.
Next steps¶
- Configuration: JSON/TOML must match the selected path and extension.
- Service Management: install-specific executable path, identity, access, authentication and lifecycle.